赞
踩
一:常用快捷键
File -> Preferences -> Keyboard Shortcuts,或者:Alt+F -> p -> k
- [
- // ctrl+space 被切换输入法快捷键占用
- {
- "key": "ctrl+alt+space",
- "command": "editor.action.triggerSuggest",
- "when": "editorTextFocus"
- },
- // ctrl+d 删除一行
- {
- "key": "ctrl+d",
- "command": "editor.action.deleteLines",
- "when": "editorTextFocus"
- },
- // 与删除一行的快捷键互换
- {
- "key": "ctrl+shift+k",
- "command": "editor.action.addSelectionToNextFindMatch",
- "when": "editorFocus"
- },
- // ctrl+shift+/多行注释
- {
- "key":"ctrl+shift+/",
- "command": "editor.action.blockComment",
- "when": "editorTextFocus"
- },
- // 定制与 sublime 相同的大小写转换快捷键,需安装 TextTransform 插件
- {
- "key": "ctrl+k ctrl+u",
- "command": "uppercase",
- "when": "editorTextFocus"
- },
- {
- "key": "ctrl+k ctrl+l",
- "command": "lowercase",
- "when": "editorTextFocus"
- }
- ]
vscode 自定义配置参考:
- {
- "editor.fontSize": 18,
- "files.associations": {
- "*.es": "javascript",
- "*.es6": "javascript"
- },
- // 控制编辑器是否应呈现空白字符
- "editor.renderWhitespace": true,
- // 启用后,将在保存文件时剪裁尾随空格。
- "files.trimTrailingWhitespace": true,
- // File extensions that can be beautified as javascript or JSON.
- "beautify.JSfiles": [
- "",
- "es",
- "es6",
- "js",
- "json",
- "jsbeautifyrc",
- "jshintrc"
- ]
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。