vscodego快捷键
时间: 2023-08-13 08:02:57 浏览: 156
在VSCode中,有一些常用的快捷键可以提高开发效率。以下是一些常用的快捷键:
- 行注释:Ctrl + / (也可以使用Shift + Alt + A)
- 删除行:Ctrl + X
- 向下复制行:Shift + Alt + Down
- 多行批量缩进:Ctrl + \] 或 Tab
- 向右缩进:Ctrl + \[
- 向左缩进:Shift + Tab
- 向上/向下移动行:Alt + Up/Down
- 查找/替换:Ctrl + F / Ctrl + H
- 移动到行首/尾:Home / End
此外,还可以通过配置自定义快捷键。你可以在VSCode的设置中添加以下配置来自定义快捷键:
```
\[
{
"key": "ctrl+shift+delete",
"command": "workbench.action.tasks.terminate"
},
{
"key": "ctrl+r",
"command": "workbench.action.tasks.runTask",
"when": "editorTextFocus"
}
\]
```
希望这些信息对你有帮助!\[1\]\[2\]
#### 引用[.reference_title]
- *1* *3* [初学Go必备的vscode插件、最常用快捷键和代码自动补全](https://blog.csdn.net/weixin_44757715/article/details/126274002)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [vscode-go 插件安装](https://blog.csdn.net/weixin_30307267/article/details/96595777)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文