Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法来以两种方式使用插件VS Code Pretty Formatter或其他插件来识别 XML 文件及其类:块和内联。有什么方法可以得到类似的结果,是否可以创建键盘快捷键?
例如:
XML扩展可以格式化XML文件,默认快捷键是Shift+Alt+F(或Format Document在命令面板中选择)。xml.format.splitAttributes您可以在设置中更改格式样式。
Shift+Alt+F
Format Document
xml.format.splitAttributes