VS Code
Shortcut
- Command palette : Cmd + P
- Warp text : Option + Z
- Undo: Cmd ⌘ + Z
- Redo: Cmd ⌘ + Shift + Z
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.detectIndentation
is true. "editor.tabSize": 2,// Insert spaces when pressing Tab. This setting is overriden // based on the file contents when
editor.detectIndentation
is true. "editor.insertSpaces": false,// When opening a file,
editor.tabSize
andeditor.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?