Topic List
Shortcut
- Command palette : Cmd ⌘ + P
- Warp text : Option ⌥ + Z
- Undo: Cmd ⌘ + Z
- Redo: Cmd ⌘ + Shift ⇧ + Z
- Bookmark next: Cmd ⌘ + Option ⌥ + L
- Bookmark previous: Cmd ⌘ + Option ⌥ + J
- Bookmark toggle: Cmd ⌘ + Option ⌥ + K
Settings
- Text wrapping by default -> "editor.wordWrap": "on"
- Access the json file with the settings by typing CTRL + SHIFT + P, then typing 'open default settings (JSON)'
How can I customize the space-to-tab conversion factor in VS Code?
Code → Preferences → Settings
// The number of spaces a tab is equal to. This setting is overridden // based on the file contents wheneditor.detectIndentationis true. "editor.tabSize": 2,// Insert spaces when pressing Tab. This setting is overriden // based on the file contents when
editor.detectIndentationis true. "editor.insertSpaces": false,// When opening a file,
editor.tabSizeandeditor.insertSpaces// will be detected based on the file contents. Set to false to keep // the values you've explicitly set, above. "editor.detectIndentation": false
ที่มา How can I customize the tab-to-space conversion factor in VS Code?
Setting ให้ ตำแหน่ง cursor ยังคงอยู่ที่เดิมเมื่อ vscode refocus
โดยการ disable the setting window:click through inactive หรือ window.clickThroughInactive to false
ที่มา [Can you stop VS Code from moving the cursor when you tap to refocus a window?](https://stackoverflow.com/questions/61789575/can-you-stop-vs-code-from-moving-the-cursor-when-you-tap-to-refocus-a-window)