0

I tried ctrl+K Ctrl +F, and searching the command palette for "format" but nothing comes up. VS code says Ctrl+K ctrl+f is not a command.

Just upgraded to x64 VS code for windows 10 yesterday. Still not working. File is an XML file that is open from a project. All XML is currently on one line.

Am I missing some extension or something?

1

2 Answers 2

8

You can only use CTRL+K CTRL+F when you have selected text. Otherwise, if you want to format the whole document, you should use ALT+Shift+F

Sign up to request clarification or add additional context in comments.

Comments

1

You need to install a VS Code extension that provides formatting support for XML.

You can try the XML Language support by Red Hat, which supports some formatting preferences specific to XML.

Comments