ก๊วนซอฟท์แวร์ </softganz> SoftGang (Gang Software)

Web &amp; Software Developer Gang.

VS Code

by Little Bear @26 เม.ย. 68 14:29 ( IP : 171...2 ) | Tags : Vscode

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 when editor.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 and editor.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?