我想缩进 Visual Studio Code 中的特定代码部分。
I read 如何在 Visual Studio Code 中设置代码格式? https://stackoverflow.com/questions/29973357/它提供了缩进整个代码的快捷方式,但在选择代码的特定部分时它不起作用。
I tried Ctrl + Shift + F after selecting some line in my code, but the whole file is indented. I'm on Windows with Visual Studio Code Insider 1.8.0. How can I do it?
我想要indentVisual Studio Code 中的特定代码部分:
- 选择要缩进的行。
- Use Ctrl + ] to indent them.
如果你想format一个部分(而不是缩进):
- 选择要设置格式的行。
- Use Ctrl + K, Ctrl + F to format them.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)