VS Code have option to convert tabs to spaces by default in 0.10.10 (see official docs). So, this extention is not much help.
TabSpacer is an extension for Visual Studio Code (VS Code).
It have 2 features, toggle the insertSpaces
option and convert existing tabs to spaces.
The extension is registered on the Visual Studio Marketplace.
Press the F1
key and type toggle insertSpaces option
or use the Ctrl+Shift+Z
key binding.
This command toggles the insertSpaces option:
- If
insertSpaces
istrue
, then its value is set tofalse
. - If
insertSpaces
isfalse
, then its value is set totrue
.
Note: The
tabSize
option is unaffected.
Press the F1
key and type convert tabs to space
or use the Ctrl+Shift+T
key binding.
This command convert all tabs to spaces.
Actual tab size is read from the tabSize
VS Code option.
Press Ctrl+P
and type ext install TabSpacer
.
You can also copy its files into your local extensions folder:
- Windows:
%USERPROFILE%\.vscode\extensions
- Linux or Mac:
$HOME/.vscode/extensions
Change README.
The extension no more displays Congratulations, your extension "TabConverter" is now active!
when activated.
TabSpacer can now convert spaces to tabs by respecting the insertSpace
VS Code option.
You can use this feature by either pressing the F1
key and typing convert spaces to tab
, or using the Ctrl+Shift+S
key binding.