Skip to main content
Post Undeleted by rustyx
deleted 31 characters in body
Source Link
rustyx
  • 86.4k
  • 28
  • 224
  • 298

Since 2023 there is a new setting terminal.integratededitor.tabStopWidthindentSize to set the tab stopindentation size separately from the indentationtab stop size.

This is particularly useful for editing legacy code which relies on 8-space tabs but uses fewer spaces for indentation.

Here's an example configuration for a 4-space indentation, while aligning actual TABs on 8 spaces:

  "editor.insertSpaces": true,   "editor.tabSize"indentSize": 4,   "terminal.integrated"editor.tabStopWidth"tabSize": 8, 

tabStopWidth

Since 2023 there is a new setting terminal.integrated.tabStopWidth to set the tab stop size separately from the indentation size.

This is particularly useful for editing legacy code which relies on 8-space tabs but uses fewer spaces for indentation.

Here's an example configuration for a 4-space indentation, while aligning actual TABs on 8 spaces:

  "editor.insertSpaces": true,   "editor.tabSize": 4,   "terminal.integrated.tabStopWidth": 8, 

tabStopWidth

Since 2023 there is a new setting editor.indentSize to set the indentation size separately from tab stop size.

This is particularly useful for editing legacy code which relies on 8-space tabs but uses fewer spaces for indentation.

Here's an example configuration for a 4-space indentation, while aligning actual TABs on 8 spaces:

 "editor.insertSpaces": true, "editor.indentSize": 4, "editor.tabSize": 8, 

tabStopWidth

Post Deleted by rustyx
Source Link
rustyx
  • 86.4k
  • 28
  • 224
  • 298

Since 2023 there is a new setting terminal.integrated.tabStopWidth to set the tab stop size separately from the indentation size.

This is particularly useful for editing legacy code which relies on 8-space tabs but uses fewer spaces for indentation.

Here's an example configuration for a 4-space indentation, while aligning actual TABs on 8 spaces:

 "editor.insertSpaces": true, "editor.tabSize": 4, "terminal.integrated.tabStopWidth": 8, 

tabStopWidth