且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio Code 与 HTML 一样自动关闭标记和缩进 XML

更新时间:2023-09-18 10:53:16

如果您单击窗口右下方的XML" - 行尾旁边 - 并选择Configure file association for .xml" 并选择 HTML 您将获得与 html 文件相同的缩进行为.

If you click on the "XML" in the lower right of the window - next to the line ending - and choose "Configure file association for .xml" and choose HTML you will get the same indenting behavior as in html files.