官網: https://code.visualstudio.com/css
Blog連接:打造性感好用的VS Code編輯器html
F1
或 Ctrl+Shift+P
: 打開命令面板。在打開的輸入框內,能夠輸入任何命令,例如:python
Backspace
會進入到 Ctrl+P
模式Ctrl+P
下輸入>
能夠進入Ctrl+Shift+P
模式在 Ctrl+P
窗口下還能夠:git
?
列出當前可執行的動做!
顯示 Errors或 Warnings,也能夠Ctrl+Shift+M
:
跳轉到行數,也能夠 Ctrl+G 直接進入@
跳轉到symbol
(搜索變量或者函數),也能夠 Ctrl+Shift+O
直接進入@
根據分類跳轉symbol
,查找屬性或函數,也能夠 Ctrl+Shift+O
後輸入:進入#
根據名字查找 symbol
,也能夠 Ctrl+T
Ctrl+Shift+N
Ctrl+Shift+W
Ctrl+\
,也能夠按住 Ctrl
鼠標點擊 Explorer
裏的文件名Ctrl+1
Ctrl+2
Ctrl+3
對python文件進行代碼格式化操做時,會提示安裝
autopep8
Shift+Alt+F
,或 Ctrl+Shift+P
後輸入 format code
Ctrl+[
、 Ctrl+]
Ctrl+Enter
Ctrl+Shift+Enter
Alt+Up
或 Alt+Down
Shift+Alt+Up
或 Shift+Alt+Down
F12
Alt+F12
Ctrl+End
Ctrl+Home
下面兩個功能和
alt+↑/↓
配合,很方便的移動代碼塊:
Shift+End
Shift+Home
這兩個功能很爽,能夠同時編輯一些變量名:
Ctrl+Alt+Down/Up
或者Alt+Shift+鼠標左鍵
,Ctrl+Shift+L
查看函數引用和批量休修改函數名,好用:
Shift+F12
Ctrl+F12
F8
逐個跳轉Ctrl+F
Ctrl+H
Ctrl+Shift+F
F11
Ctrl +/-
Ctrl+B
Ctrl+Shift+E
Ctrl+Shift+F
Ctrl+Shift+G
Ctrl+Shift+D
Ctrl+Shift+U
自動保存:File -> AutoSave ,或者 Ctrl+Shift+P,輸入 autogithub
https://www.zhihu.com/questio...
將設置中的"files.autoGuessEncoding"項的值改成true便可。shell
{ "workbench.iconTheme": "vscode-icons", "files.autoSave": "onWindowChange", // 設置保存時,自動將Python代碼的一些空格給trim掉; "files.trimTrailingWhitespace": true, // 將一些編譯後而不想在編輯器裏看到的文件隱藏; "files.exclude": { ".vs*": true, "*.*~": true, "*.pyc": true, "*/*.pyc": true }, "terminal.integrated.rendererType": "dom", "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", "python.formatting.autopep8Args": [ "--max-line-length=100" ], "editor.formatOnSave": true, "python.linting.pylintEnabled": true, "python.linting.pylintArgs": [ "--include-naming-hint=n", "--disable=W0311", "--disable=C0103", "--disable=E1101" ], "files.eol": "\n", "editor.wordWrap": "on" }
VS Code擴展商店:https://marketplace.visualstu...json
能夠來主題商城選擇:segmentfault
切換主題的快捷鍵:ctrl+k
,ctrl+t
ctrl+alt+l
快速跳轉,圖標設置 ctrl+alt+n
ctrl+alt+l
書籤跳轉;下面介紹一下怎麼設置同步:
ctrl+shift+p
,輸入sync
,會看到相關選項,選擇update/upload settings
,而後會輸入 https://github.com/settings/t...。具體的用法,Settings Sync的擴展主頁介紹的很詳細了: https://marketplace.visualstu...