VS Code

我的习惯

快捷键绑定

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
29
30
31
32
33
34
35
36
37
// Code/User/keybindings.json
[
{
"key": "cmd+i",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "cmd+j",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+y",
"command": "stylelint.executeAutofix"
},
{
"key": "cmd+u",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
}
]

settings

1
2
3
4
5
6
7
8
9
// Code/User/settings.json
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[csharp]": {
"editor.defaultFormatter": "csharpier.csharpier-vscode"
}
}

插件

  • GitLens — Git supercharged 显示git历史提交记录

  • Prettier - Code formatter 代码格式化
    可在 控制台 OUTPUT Prettier中查看生效的config

  • Stylelint Css样式格式化

  • Black Formatter 格式化python代码

  • CSharpier - Code formatter 格式化c#代码

  • TRAE AI: Coding Assistant 代码补全提示

  • Tailwind CSS IntelliSense tailwind智能提示

  • Claude Code for VS Code

  • opencode

  • Unity


VS Code
http://example.com/2026/01/20/VS-Code/
作者
dsaco
发布于
2026年1月20日
许可协议