本文介绍了支架开箱即用的快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 vscode 上,有一个快捷方式可以转到外括号内.
On vscode, there's a shortcut to go to inner of outer bracket .
report_disk_space() {
return
}
Mac ++
从命令面板中,选择到括号
到括号的外部.但没有键盘绑定.
From the command palette, there's select to bracket
going to the outer of the bracket.yet there's not keyboard binding.
如何解决问题?
推荐答案
您可以为此定义一个键绑定.打开键盘快捷键文件并在用户键绑定中附加以下代码.保存文件,如果执行 ctrl+k
后跟 ctrl+\
,VS Code 将选择括号.您可以通过编辑 key
属性的值来更改键绑定.
You can define a keybinding for this. Open the keyboard shortcuts file and append the following code in the user keybindings. Save the file and VS Code will select the bracke if you do ctrl+k
followed by ctrl+\
. You can change the keybinding by editing the value of the key
property.
{
"key": "ctrl+k ctrl+\\",
"command": "editor.action.selectToBracket",
"when": "editorTextFocus"
}
这篇关于支架开箱即用的快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!