If you have checked/set the options of the tab size in Visual Studio but it still won't work. Then check if you have a.editorconfig file in your project! This will override the Visual Studio settings. Edit the tab-size in that file. 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.
Note
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.
- The Visual Studio Marketplace has a snippets. The following script will insert Rob's email address when you type 'robmail' and hit space or tab or enter.
- About Press Copyright Contact us Creators Advertise Developers Terms Privacy Policy & Safety How YouTube works Test new features Press Copyright Contact us Creators.
- From Visual Studio, select “Tools” “Options“. Select “Text Editor” in the left pane. Select the language you are using (C#, C, Basic, etc.). For C# and Basic, choose “IntelliSense“. For C or C, choose “Advanced“, then scroll to the “IntelliSense” section.
Description
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.
Usage
Toggle insertSpaces option
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.
Convert tabs to space
Press the F1
key and type convert tabs to space
or use the Ctrl+Shift+T
key binding.
Tab Or Space Visual Studios In New York
This command convert all tabs to spaces.
Actual tab size is read from the tabSize
VS Code option.
Tab Or Space Visual Studio 2013
Install
Press Ctrl+P
and type ext install TabSpacer
.
You can also copy its files into your local extensions folder:
- Windows:
%USERPROFILE%.vscodeextensions
- Linux or Mac:
$HOME/.vscode/extensions
Changelog
Version 1.0.2
Change README.
Version 1.0.1
The extension no more displays Congratulations, your extension 'TabConverter' is now active!
when activated.
Version 1.0.0
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.