[英]select next occurence of a word when using multiple cursors
使用扩展名Select 通过v0.11.0 和命令moveby.regex
您可以根据正则表达式移动多个光标。
正则表达式可以固定在键绑定中或向用户询问。
对于固定的正则表达式,使用如下键绑定:
{
"key": "ctrl+f6", // or any other key combo
"when": "editorTextFocus",
"command": "moveby.regex",
"args": {
"regex": "\"",
"properties": ["next", "start"]
}
}
要请求正则表达式,请使用如下键绑定:
{
"key": "ctrl+shift+f6", // or any other key combo
"when": "editorTextFocus",
"command": "moveby.regex",
"args": {
"ask": true,
"properties": ["next", "start"]
}
}
在输入框中以非转义形式输入正则表达式。 在 JSON 文件中,您需要转义"
和\
字符。
在以后的版本中,命令selectby.regex
也将支持 multi cursor。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.