https://lzw.me/a/vscode-visual-studio-code-shortcut.html
Ctrl+Shift+P
Ctrl+P
Ctrl+P
Ctrl+Shift+P
Ctrl+P
-直接输入文件名,跳转到文件 - ? 列出当前可执行的动作
Ctrl+Shift+M
Ctrl+G
Ctrl+Shift+O
Ctrl+Shift+O
Ctrl+T
Ctrl+Shift+N
Ctrl+Shift+W
- 同时打开多个编辑器(查看多个文件)
Ctrl+N
Ctrl+Tab
- 切出一个新的编辑器(最多 3 个) Ctrl+\,也可以按住 Ctrl 鼠标点击 Explorer 里的文件名
Ctrl+1
Ctrl+2
Ctrl+3
- 3 个编辑器之间循环切换 Ctrl+
Ctrl+k
然后按 Left或 Right
Ctrl+[
Ctrl+]
Ctrl+C
Ctrl+V
Shift+Alt+F
Ctrl+Shift+P
format code
Alt+Up
Alt+Down
Shift+Alt+Up
Shift+Alt+Down
Ctrl+Enter
Ctrl+Shift+Enter
- 移动到行首: Home
- 移动到行尾: End
Ctrl+End
Ctrl+Home
- 移动到定义处: F12
Alt+F12
Ctrl+Shift+]
Shift+End
Shift+Home
Ctrl+Delete
Shift+Alt+Left
Shift+Alt+Right
- 多行编辑(列编辑):
Alt+Shift+鼠标左键
Ctrl+Alt+Down/Up
Ctrl+Shift+L
Ctrl+D
Ctrl+Shift+K
Ctrl+U
Ctrl + Shift + L
键,即可快速选中当前文件中所有匹配的词,并在每一个词后面有一个编辑光标,可批量同步编辑
Shift+F12
Ctrl+F12
F2
,输入新名字,回车,则所有该方法的引用也都同步更新了 F8
Set file to
Compare with file_name_you_chose
Ctrl+F
Ctrl+H
Ctrl+Shift+F
- 全屏:
F11
- zoomIn/zoomOut:
Ctrl +/-
Ctrl+B
Ctrl+Shift+E
Ctrl+Shift+F
Ctrl+Shift+G
Ctrl+Shift+D
Ctrl+Shift+U
- 自动保存:
File -> AutoSave
Ctrl+Shift+P
auto
打开默认键盘快捷方式设置:File -> Preferences -> Keyboard Shortcuts
,或者:Alt+F -> p -> k
keybindings.json
:
05 |
"key"
"ctrl+alt+space" , |
06 |
"command"
"editor.action.triggerSuggest" , |
07 |
"when"
"editorTextFocus" |
12 |
"command"
"editor.action.deleteLines" , |
13 |
"when"
"editorTextFocus" |
18 |
"command"
"editor.action.addSelectionToNextFindMatch" , |
24 |
"command"
"editor.action.blockComment" , |
25 |
"when"
"editorTextFocus" |
28 |
editor.action.transformToLowercase |
29 |
editor.action.transformToUppercase |
32 |
"command"
"editor.action.transformToUppercase" |
33 |
"when"
"editorTextFocus" |
37 |
"command"
"editor.action.transformToLowercase" |
38 |
"when"
"editorTextFocus" |
前端开发必备插件
- PostCSS Sorting
- stylelint
- stylefmt
- ESLint
- javascript standard format
- beautify
- Babel ES6/ES7
- Debugger for Chrome
- Add jsdoc comments
- javascript(ES6) code snippets
- vue
- weex
- Reactjs code snippets
- React Native Tools
- Npm Intellisense
- Instant Markdown
- Markdown Shortcuts
- TextTransform
使用等宽字体:
vscode 自定义配置参考:
04 |
"editor.fontLigatures"
true , |
06 |
"editor.fontFamily"
"Fira Code, 'Noto Sans CJK SC Medium', Consolas, 'Courier New', monospace" , |
08 |
"editor.minimap.enabled"
false , |
09 |
"editor.minimap.renderCharacters"
false , |
10 |
"files.associations" : { |
15 |
"editor.renderWhitespace"
"all" , |
17 |
"files.trimTrailingWhitespace"
true , |
29 |
"git.enableSmartCommit"
false , |
31 |
"git.autorefresh"
false , |
- 官方快捷键大全:https://code.visualstudio.com/docs/customization/keybindin