VS 代码+JavaScript 快捷方式用于带分号的结束行并转到下一行 [英] VS code+JavaScript shortcut for end line with a semicolon and go to the next line
本文介绍了VS 代码+JavaScript 快捷方式用于带分号的结束行并转到下一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我想要做的示例:
我在 WebStorm 中使用了 Ctrl+Shift+T 但现在我坚持在 VsCode 中找到相同的快捷方式.有什么建议吗?
I used Ctrl+Shift+T in WebStorm but now I'm stuck with finding the equal shortcut at VsCode. Any suggestions?
推荐答案
我认为您需要为此设置一个宏,它不是内置的.请参阅 vscode 宏扩展.
I think you will need to set up a macro for that, it isn't built-in. See vscode macro extension.
这在您的设置中:
"macros": {
"insert semicolon and goto next line": [
"cursorLineEnd",
{
"command": "type",
"args": {
"text": ";"
}
},
"editor.action.insertLineAfter"
]
}
为此设置一个键绑定:
{
"key": "ctrl+shift+;",
"command": "macros.insert semicolon and goto next line"
},
这篇关于VS 代码+JavaScript 快捷方式用于带分号的结束行并转到下一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文