0%

Visual Studio Code 筆記

Visual Studio Code Note

Current Version: 1.10
Just Note the very Useful!

Download: https://code.visualstudio.com
Doc: https://code.visualstudio.com/docs

Config

⌘, Preferences: Open User Settings

My Settings.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
// favorite setting
"window.zoomLevel": 0,
"editor.fontSize": 16,
"editor.fontFamily": "Monaco, 'Courier New', monospace",
"editor.renderWhitespace": "boundary",
"files.autoSave": "onFocusChange",
// indents
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
// others
"extensions.autoUpdate": true,
"terminal.integrated.shellArgs.osx": [
"-l"
],
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/dist": true
},
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
/// packages
// vscode-icons
"workbench.iconTheme": "vscode-icons",
"vsicons.projectDetection.disableDetect": true,
// C/C++
"[cpp]": {
"editor.quickSuggestions": false
},
"[c]": {
"editor.quickSuggestions": false
},
// Python
"python.linting.enabled": false
}

⌘K ⌘S Preferences: Keyboard Shortcuts Reference
⌘J Toggle Panel

My keybindings.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[
{
"key": "cmd+r",
"command": "workbench.action.tasks.build"
},
{
"key": "shift+cmd+b",
"command": "-workbench.action.tasks.build"
},
{
"key": "cmd+e",
"command": "workbench.action.output.toggleOutput",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+u",
"command": "-workbench.action.output.toggleOutput"
},
{
"key": "cmd+f",
"command": "actions.find"
},
{
"key": "cmd+e",
"command": "-actions.find"
}
]

Keyboard Shortcuts References

Keyboard Shortcuts PDF

⇧⌘P Sinppets: Preferences: Snippets
⇧⌘P Shell Command: Install ‘code’ command in PATH

Terminal

⌃` Show/Hide
⌘K Clear
⌘↑ ⌘↓ 上下動

⌘B Toggle SideBar
⇧⌘E File Manager
⇧⌘F Search

Coding

⌘P Open File
⌘\ Split Editor

⇥ ⇧⇥ OR ⌘[ ⌘] indent/outdent lines

⇧↑ ⇧↓ 選取文字
⌥↑ ⌥↓ 移動文字
⌘↑ ⌘↓ 跳文字頭尾

⇧← ⇧→ 選文字左右
⌘← ⌘→ 跳最左最右
⌥← ⌥→ 跳單詞左右

⇧⌘← ⇧⌘→ 選句子左右
⇧⌥← ⇧⌥→ 選單詞左右
⌥⌘← ⌥⌘→ 左右切換分頁
⌥⌘↑ ⌥⌘↓ 多重游標上下

⌥⌘[ collapse code block
⌥⌘] unfold code block
⌘K+⌘0 collapse all code blocks
⌘K+⌘J unfold all code blocks