如何在 Sublime Text 3 片段中自动拥有多个光标?
How do I automatically have multiple cursors in a Sublime Text 3 snippet?
我有一个 Sublime Text 3 的控制台日志片段。
{
"keys": ["alt+super+l"],
"command": "insert_snippet",
"args": {
"contents": "console.log('', )"
},
"context": [
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
]
}
我希望有多个游标,这样,当我调用此代码段的键时,游标同时位于 $1 和 $2 位置,因为我通常只想记录变量名和控制台中的变量值。我该如何管理?
我有一个 Sublime Text 3 的控制台日志片段。
{
"keys": ["alt+super+l"],
"command": "insert_snippet",
"args": {
"contents": "console.log('', )"
},
"context": [
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
]
}
我希望有多个游标,这样,当我调用此代码段的键时,游标同时位于 $1 和 $2 位置,因为我通常只想记录变量名和控制台中的变量值。我该如何管理?