0%

vscode

阅读更多

1 快捷键

keybindings

  1. 搜索文件:ctrl+p
  2. 回到上一个/下一个编辑处:ctrl + -/ctrl + shift + -
  3. ⇧⌘P:打开命令列表
    • upper:转为大写
    • lower:转为小写
  4. ⌘]:增加缩进
  5. ⌘[:减少缩进
  6. ⇧⌘O:函数列表
  7. ⌘T:在当前工作目录中查询符号
  8. ⇧⌥F:格式化代码
  9. ⌘⌥[:折叠鼠标所在代码段
  10. ⌘⌥]:展开鼠标所在代码段

2 配置

  1. 禁用行内作者提示链接:gitlens.codeLens.authors.enabled
  2. 禁用引用补全:editor.autoClosingQuotes
  3. Tab对应的空格数量,是否受到文本中已有的缩进影响:editor.detectIndentation

3 插件

c++相关

  • C/C++
  • C++ Intellisense
  • Remote Development
  • Better C++ Syntax

markdown相关

  • Markdown Preview Enhanced

4 c_cpp_properties.json

如何打开该配置:⇧⌘P,然后输入Edit Configurations

5 settings.json

  • MacOS~/Library/Application\ Support/Code/User/settings.json
  • Linux~/.config/Code/User/settings.json

6 vim

Commands可以参考keybindings

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"ctrl+n"
],
"commands": [
"workbench.action.quickOpen"
]
},
{
"before": [
"ctrl+l"
],
"commands": [
"editor.action.formatDocument"
]
},
{
"before": [
"<leader>",
"r",
"g"
],
"commands": [
"workbench.view.search"
]
}
]

7 参考