[英]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.