Osc*_*son 5 editor visual-studio-code
对于某些项目,我使用Visual Studio Code。困扰我的一件事是我无法像 Vim 的 gq 命令那样快速格式化注释块。
对于那些不了解 Vim 的人来说,gq 命令可以在您选择/突出显示一行或多行的情况下使用,如下所示:
// This is a really really long line right here
Run Code Online (Sandbox Code Playgroud)
它使它像这样
// this is a really
// really long line
// right here
Run Code Online (Sandbox Code Playgroud)
根据您的标尺设置(我的标尺设置为 80,因此它会包含任何超过 80 的单词。
| 归档时间: |
|
| 查看次数: |
1919 次 |
| 最近记录: |