VS Code
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?