前端开发神器 vscode 常用快捷键
生活随笔
收集整理的這篇文章主要介紹了
前端开发神器 vscode 常用快捷键
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
主命令框
F1?或?Ctrl+Shift+P: 打開命令面板。在打開的輸入框內(nèi),可以輸入任何命令,例如:
- 按一下?Backspace?會(huì)進(jìn)入到?Ctrl+P?模式
- 在?Ctrl+P?下輸入?>?可以進(jìn)入?Ctrl+Shift+P?模式
在?Ctrl+P?窗口下還可以:
- 直接輸入文件名,跳轉(zhuǎn)到文件
- ??列出當(dāng)前可執(zhí)行的動(dòng)作
- !?顯示?Errors或?Warnings,也可以?Ctrl+Shift+M
- :?跳轉(zhuǎn)到行數(shù),也可以?Ctrl+G?直接進(jìn)入
- @?跳轉(zhuǎn)到?symbol(搜索變量或者函數(shù)),也可以?Ctrl+Shift+O?直接進(jìn)入
- @?根據(jù)分類跳轉(zhuǎn)?symbol,查找屬性或函數(shù),也可以?Ctrl+Shift+O?后輸入:進(jìn)入
- #?根據(jù)名字查找?symbol,也可以?Ctrl+T
常用快捷鍵
編輯器與窗口管理
代碼編輯
格式調(diào)整
光標(biāo)相關(guān)
重構(gòu)代碼
查找替換
顯示相關(guān)
其他
- 自動(dòng)保存:File -> AutoSave?,或者?Ctrl+Shift+P,輸入?auto
修改默認(rèn)快捷鍵
打開默認(rèn)鍵盤快捷方式設(shè)置:
File -> Preferences -> Keyboard Shortcuts,或者:Alt+F -> p -> k
修改?keybindings.json:
// Place your key bindings in this file to overwrite the defaults [// 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 相同的大小寫轉(zhuǎn)換快捷鍵,需安裝 TextTransform 插件{"key": "ctrl+k ctrl+u","command": "uppercase","when": "editorTextFocus"},{"key": "ctrl+k ctrl+l","command": "lowercase","when": "editorTextFocus"} ]前端開發(fā)必備插件
- 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
自定義設(shè)置參考
vscode 自定義配置參考:
{"editor.fontSize": 18,"files.associations": {"*.es": "javascript","*.es6": "javascript"},// 控制編輯器是否應(yīng)呈現(xiàn)空白字符"editor.renderWhitespace": true,// 啟用后,將在保存文件時(shí)剪裁尾隨空格。"files.trimTrailingWhitespace": true,// File extensions that can be beautified as javascript or JSON."beautify.JSfiles": ["","es","es6","js","json","jsbeautifyrc","jshintrc"] }相關(guān)參考
官方快捷鍵大全:https://code.visualstudio.com/docs/customization/keybindings
http://blog.csdn.net/u010019717/article/details/50443970
轉(zhuǎn)載于:https://www.cnblogs.com/toma113/p/7338901.html
總結(jié)
以上是生活随笔為你收集整理的前端开发神器 vscode 常用快捷键的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python安装(原系统中已有pytho
- 下一篇: LoadRunner11支持的浏览器小结