标签:rip trim asc ons not ati space board res
F1 或 Ctrl+Shift+P : 打开命令面板。在打开的输入框内,可以输入任何命令,例如:
Ctrl+P 模式Ctrl+P 下输入 > 可以进入 Ctrl+Shift+P 模式Ctrl+P 窗口下还可以:
Ctrl+Shift+MCtrl+G 直接进入Ctrl+Shift+O 直接进入Ctrl+Shift+O 后输入:进入Ctrl+TCtrl+Shift+NCtrl+Shift+WCtrl+NCtrl+TabCtrl+1 Ctrl+2 Ctrl+3Ctrl+k然后按 Left或 RightCtrl+[ 、 Ctrl+]Ctrl+C 、 Ctrl+V 复制或剪切当前行/当前选中内容Shift+Alt+F,或 Ctrl+Shift+P 后输入 format codeAlt+Up 或 Alt+DownShift+Alt+Up 或 Shift+Alt+DownCtrl+EnterCtrl+Shift+EnterCtrl+EndCtrl+HomeAlt+F12Ctrl+Shift+]Shift+EndShift+HomeCtrl+DeleteShift+Alt+Left 和 Shift+Alt+RightAlt+Shift+鼠标左键, Ctrl+Alt+Down/UpCtrl+Shift+LCtrl+D 下一个匹配的也被选中 (在 sublime 中是删除当前行,后面自定义快键键中,设置与 Ctrl+Shift+K 互换了)Ctrl+UCtrl + Shift + L键,即可快速选中当前文件中所有匹配的词,并在每一个词后面有一个编辑光标,可批量同步编辑Shift+F12Ctrl+F12F2,输入新名字,回车,则所有该方法的引用也都同步更新了F8 逐个跳转Set file tocompare,然后需要对比的文件上右键选择 Compare with file_name_you_choseCtrl+FCtrl+HCtrl+Shift+FF11Ctrl +/-Ctrl+BCtrl+Shift+ECtrl+Shift+FCtrl+Shift+GCtrl+Shift+DCtrl+Shift+UFile -> AutoSave,或者 Ctrl+Shift+P,输入 auto打开默认键盘快捷方式设置:File -> Preferences -> Keyboard Shortcuts,或者:Alt+F -> p -> k
修改 keybindings.json:
01 |
// Place your key bindings in this file to overwrite the defaults |
02 |
[ |
03 |
// ctrl+space 被切换输入法快捷键占用 |
04 |
{ |
05 |
"key": "ctrl+alt+space", |
06 |
"command": "editor.action.triggerSuggest", |
07 |
"when": "editorTextFocus" |
08 |
}, |
09 |
// ctrl+d 删除一行 |
10 |
{ |
11 |
"key": "ctrl+d", |
12 |
"command": "editor.action.deleteLines", |
13 |
"when": "editorTextFocus" |
14 |
}, |
15 |
// 与删除一行的快捷键互换 |
16 |
{ |
17 |
"key": "ctrl+shift+k", |
18 |
"command": "editor.action.addSelectionToNextFindMatch", |
19 |
"when": "editorFocus" |
20 |
}, |
21 |
// ctrl+shift+/多行注释 |
22 |
{ |
23 |
"key":"ctrl+shift+/", |
24 |
"command": "editor.action.blockComment", |
25 |
"when": "editorTextFocus" |
26 |
}, |
27 |
// 定制与 sublime 相同的大小写转换快捷键 |
28 |
editor.action.transformToLowercase |
29 |
editor.action.transformToUppercase |
30 |
{ |
31 |
"key": "ctrl+k ctrl+u", |
32 |
"command": "editor.action.transformToUppercase" |
33 |
"when": "editorTextFocus" |
34 |
}, |
35 |
{ |
36 |
"key": "ctrl+k ctrl+l", |
37 |
"command": "editor.action.transformToLowercase" |
38 |
"when": "editorTextFocus" |
39 |
} |
40 |
] |
前端开发必备插件
使用等宽字体:
vscode 自定义配置参考:
01 |
{ |
02 |
"editor.fontSize": 16, |
03 |
"editor.tabSize": 2, |
04 |
"editor.fontLigatures": true, |
05 |
// 使用等宽字体 Fira Code |
06 |
"editor.fontFamily": "Fira Code, ‘Noto Sans CJK SC Medium‘, Consolas, ‘Courier New‘, monospace", |
07 |
// 关闭右侧的 minimap |
08 |
"editor.minimap.enabled": false, |
09 |
"editor.minimap.renderCharacters": false, |
10 |
"files.associations": { |
11 |
"*.es": "javascript", |
12 |
"*.es6": "javascript" |
13 |
}, |
14 |
// 控制编辑器是否应呈现空白字符 |
15 |
"editor.renderWhitespace": "all", |
16 |
// 启用后,将在保存文件时剪裁尾随空格。 |
17 |
"files.trimTrailingWhitespace": true, |
18 |
// File extensions that can be beautified as javascript or JSON. |
19 |
"beautify.JSfiles": [ |
20 |
"", |
21 |
"es", |
22 |
"es6", |
23 |
"js", |
24 |
"json", |
25 |
"jsbeautifyrc", |
26 |
"jshintrc" |
27 |
], |
28 |
// 关闭 git 自动刷新、fetch、add 操作 |
29 |
"git.enableSmartCommit": false, |
30 |
"git.enabled": true, |
31 |
"git.autorefresh": false, |
32 |
"git.autofetch": false, |
33 |
} |
vscode: Visual Studio Code 常用快捷键
标签:rip trim asc ons not ati space board res
原文地址:https://www.cnblogs.com/kungfupanda/p/10360769.html