You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using VS Code in WSL mode, prettier and @prettier/plugin-xml installed globally.
The only formatting effect that I see is in my test.xml the space added in the declaration changing it from <?xml version="1.0"?> to <?xml version="1.0" ?>.
By default every tag in XML is whitespace-sensitive, so this is acting as designed. If you want to ignore whitespace sensitivity, you should use the option listed in the README, and set xmlWhitespaceSensitivity to "ignore".
Thanks, I did read the README, but didn't see or think that the xmlWhitespaceSensitivity would have that effect.
Adding "prettier.xmlWhitespaceSensitivity": "ignore" to vscode settings.json does not get passed to prettier or the plugin.
Adding it to a .prettierrc file does get taken into consideration, but I don't see the formatting happening.
Today it works. Strange, but I'll take it. I'll file an issue with the vs code plugin as it would be really great if a global default config could be set via settings.json.
Using VS Code in WSL mode, prettier and @prettier/plugin-xml installed globally.
The only formatting effect that I see is in my
test.xml
the space added in the declaration changing it from<?xml version="1.0"?>
to<?xml version="1.0" ?>
.The text was updated successfully, but these errors were encountered: