[英]How to match the start of a line using a Visual Studio Code regex?
[英]Home key go to start of line in Visual Studio Code?
Visual Studio Code 中将 Home 键 go 设置为行首的选项在哪里?
现在你必须做
家,家
或者
主页, Ctrl +左箭头
我宁愿家在线路的起点。
文件 → 首选项 → 键盘快捷键:
我认为没有任何内置选项可以更改Home的当前行为,但您可以借助宏扩展轻松更改它,例如多命令(在keybindings.json
中):
{
"key": "home",
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"cursorHome",
"cursorHome"
]
},
"when": "editorTextFocus"
}
现在按Home一次与按两次具有相同的效果。
一种更简洁的方法是为命令cursorLineStart
提供Home键绑定:
{
"key": "home",
"command": "cursorLineStart",
"when": "editorTextFocus"
},
从 Keybinding Shortcuts 执行此操作或手动将其添加到您的keybindings.json
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.