Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Smart Column IndenterNew to Visual Studio Code? Get it now.
Smart Column Indenter

Smart Column Indenter

Leonardo Machado Carreiro

|
61,655 installs
| (12) | Free
This extension adds support for indenting code into columns (or code alignment), to make your code more beautiful, readable, clear and with fewer lines of code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Smart Column Indenter

This extension adds support for indenting code into columns, to make your code more beautiful, readable, clear and with fewer lines of code.

The work is in progress at the github repository: https://github.com/lmcarreiro/smart-column-indenter

Features

  1. Indent into 2 Columns (Ctrl+I Ctrl+J) Used in key-value pair which the values aren't similar.
  2. Indent into N Columns (Ctrl+I Ctrl+N) Used in a sequence of two or more lines that are similar
  3. Remove Line Breaks (Ctrl+I Ctrl+I) Used to remove line breaks (normally in object literals)

Demo

Limitations

Today this extension only works with *.ts, *.js and *.json files. It will try to work with others extensions, but you may get some issues because it will try to use TypeScript lexer as default when it doesn't find the correct one for the extension of the file.

Feel free to make Pull Requests to add support to other languages and add new features.

Release Notes

0.0.13

Set TypeScript scanner as default for languages that doesn't have one yet.

0.0.12

Bug fix when there was trailing whitespaces

0.0.11

Change the gif.

0.0.10

Change extension tags. I realize now that the more used term is "code alignment".

0.0.9

Add an icon.

0.0.8

Add some gif to make a better presentation of the extension features.

0.0.7

The MVP.

0.0.1-0.0.6

Just proof of concept and learning how to publish extensions in VSCode.


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft