vscode tips
文章目录
安装
|
|
配置
进入配置
- 文件-> 首选项 ->配置
- 点击右上边的文件图标,进入打开设置(打开配置文件C:\Users\ \AppData\Roaming\Code\User\settings.json)
修改插件安装目录
|
|
shortkeys
说明
本文以windows为例。
basic
F2
: renamectrl + p
: open command options- ` ctrl+ `` : open terminal
ctrl + Shift + F
: searchctrl+ K, then Z
: zen modeesc esc
: from zen mode to the normal editor viewctrl+B
: Toggle sidebar
Navigate
F8
: Navigate errors and warnings
File
ctrl+f4
: close filectrl+W
: tab through open files
editor
ctrl + \
: split editorctrl + Shift + T
: open a Closed Editorctrl + T
: open a fileCtrl + Home
: go to the beginning of fileCtrl + End
: go to the end of fileCTRL + K + W
: Close all open editor tabsSHIFT+ALT+F
: Format document
cursor
Ctrl+Shift+L
: Create cursor on all occurrencesCtrl+Shift+Arrow key
: Add the cursoralt+ mouse click at the position
: Insertadditional cursorsctrl+ U
: remove additional cursors
code
ctrl + t
: search current workspace sysmolsctrl + Shift + o
: search current file sysmolsctrl + Alt + Up arrow/Down arrow.
: . Add Multiple CursorsShift + Alt + F
: formart codeCtrl + Backspace
: Delete Previous WordCtrl + Shift + Right Arrow
: select texts word by word from right to leftCtrl + Shift + Left Arrow
: select texts word by word from left to rightCtrl + Shift + [
: To fold the innermost uncollapsed region at the cursorCtrl + Shift + ]
: To unfold the innermost uncollapsed region at the cursorShift + Alt
:Column (Box) SelectionCtrl+K Ctrl+0
: fold all sectionsCtrl+K Ctrl+J
: unfold all sectionsCTRL + SHIFT + L
: Add cursors to all matching selectionsCTRL + D
: Add cursor to next matching selectionShift + Alt + Up/Down
: Copy Line Up/Downctrl+ shift + \
: Find a matching bracketshift + alt + → or ←
: move and expand the selectionshift+ alt+ A
: add block commentctrl+ /
: add comment
line
alt +J
: join linesctrl +g
: jump to lineAlt + Up arrow/Down arrow
: move lineCtrl + Shift + D
: Duplicate LineShift + Alt + Up/Down
: Copy Line Up/Downctrl + x
: delete current lineCtrl+Shift+K
: Delete an entire lineCTRL + L
: Select current lineCTRL + Enter
: insert line belowCTRL + Enter + Shift
: insert line above
extensions
欢迎关注
欢迎关注微信公众帐号:沉风网事(savewind)
文章作者 沉风网事
上次更新 2019-02-08