Selective Indent

April 14, 2026 ยท View on GitHub

Selective Indent Icon

Convert indentation between tabs and spaces on selected lines or entire files.

Installation

You can install this extension directly from your preferred marketplace:

Alternatively, search for "Selective Indent" in your VS Code Extensions tab.

Usage

Access from Command Palette or right-click context menu:

CommandAction
Convert Selected Lines to SpacesConvert selected lines' indentation to spaces
Convert Selected Lines to TabsConvert selected lines' indentation to tabs
Convert All Lines to SpacesConvert entire file's indentation to spaces
Convert All Lines to TabsConvert entire file's indentation to tabs

Demo

Command Palette

Demo Command Palette

Context Menu

Demo Context Menu

Resources