redhat-developer / vscode-xml

Editing XML in Visual Studio Code made easy
Eclipse Public License 2.0
262 stars 82 forks source link

XML is not offered as a formatter #1023

Closed xLexip closed 2 months ago

xLexip commented 2 months ago

Hey there,

I've installed the redhat xml extension in my vscode. image

Unfortunately, XML is not offered as a formatter for .xml files for me: image

Restarting vscode or setting it as a formatter in the settings.json does not help. "[xml]": { "editor.defaultFormatter": "redhat.vscode-xml" },

VS code version: 1.92.2 on Windows11

angelozerr commented 2 months ago

If you wrtite an invalid XML content, do you see some errors?

fbricon commented 2 months ago

If XML is not listed, it might be because the extension failed to start. Can you see anything in the vscode logs? Can you see XML Support in the Output view?

Screenshot 2024-08-29 at 11 24 01
xLexip commented 2 months ago

Thank you both. I couldn't find any relevant extension logs and it turned out there was just a corrupt file association in the settings.json made by another extension. Thanks for your help and sorry for wasting your time. :]

angelozerr commented 2 months ago

Thanks for your help and sorry for wasting your time. :]

No problem and hope you will enjoy with vscode xml.