Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Indent SpaceNew to Visual Studio Code? Get it now.
Indent Space

Indent Space

Satoshi Yamamoto

|
985 installs
| (1) | Free
Extension to insert, select, and convert at the beginning of a line.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode extension - Indent Space

This extension has the following functions

  • Change the indentation type. Space 2 or 4 or Tab.

Attention Information

1.4.0 or higher

Since v1.4.0, this extension no longer has the ability to copy to the clipboard.

If you need that functionality, please use the following extension

  • Copy Format Code - Visual Studio Marketplace
    https://marketplace.visualstudio.com/items?itemName=SatoshiYamamoto.vscode-copy-format-code

The Copy Format Code extension is more versatile and easier to use than previous versions of this extension. Please use the Copy Format Code Extension.

1.5.0 or higher

From version 1.5.0, the following commands have been removed

  • Indent Space : Cut : Min Indent
  • Indent Space : Cut : Indent (Trim Begin)

This functionality has been carried over to the next extension, so please use that.

  • Line Space Fill Trim - Visual Studio Marketplace
    https://marketplace.visualstudio.com/items?itemName=SatoshiYamamoto.vscode-line-space-fill-trim

Install

https://marketplace.visualstudio.com/items?itemName=SatoshiYamamoto.vscode-indent-space

Usage

Processing is performed according to the following command for each line in the selected range. Enter the character string after selecting the command.

Following commands are available:

- Indent Space : Change : Space 2 to 4
- Indent Space : Change : Space 2 to Tab
- Indent Space : Change : Space 4 to 2
- Indent Space : Change : Space 4 to Tab
- Indent Space : Change : Tab to Space 2
- Indent Space : Change : Tab to Space 4

Or Select Function

- Indent Space : Select Function ...
  - Space 2 to 4
  - Space 2 to Tab
  - Space 4 to 2
  - Space 4 to Tab
  - Tab 1 to Space 2
  - Tab 1 to Space 4
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft