Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Selective IndentNew to Visual Studio Code? Get it now.
Selective Indent

Selective Indent

Isnandar Fajar Pangestu

|
5 installs
| (0) | Free
Easily convert indentation (tabs <-> spaces) on specific lines or the whole file in VSCode.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Selective Indent

Selective Indent Icon

Easily convert indentation (tabs <-> spaces) on specific lines or the whole file in VSCode.


Installation

You can install Selective Indent from the Visual Studio Code Marketplace or using the command line:

code --install-extension isnandar1471.vscode-selective-indent

Demo

  • With Command Pallete

    Demo Command Pallete

  • With Context Menu

    Demo Context Menu


Features

  • Convert indentation between tabs and spaces
  • Supports converting selected lines or entire file
  • Accessible from the Command Palette and context menu

Commands

Command Description
vscode-selective-indent.convertSelectedLinesIndentationToSpaces Convert selected lines indentation to spaces
vscode-selective-indent.convertSelectedLinesIndentationToTabs Convert selected lines indentation to tabs
vscode-selective-indent.convertAllLinesIndentationToSpaces Convert all lines indentation to spaces
vscode-selective-indent.convertAllLinesIndentationToTabs Convert all lines indentation to tabs

Release Notes

See ./CHANGELOG.md


License

Available in ./LICENSE


Publishing

npm install -g @vscode/vsce
vsce publish
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft