Skip to content

mfederczuk/vscode-smart-indent-align

Repository files navigation

VSCode Smart Indent/Align Extension

version: 0.1.0 Changelog

About

An extension for those who know the difference between indentation and alignment

Smart Indent/Align is a VSCode extension that adds smart indentation and alignment.

Even though indentation should be done with tabs, and alignment should be done with spaces — this extension also supports using spaces as indentation editor.insertSpaces: true. (though only to some degree)

This is an unofficial spiritual successor to j-zeppenfeld's Tab-Indent Space-Align extension, which unfortunately seems to have been abandoned.

Features

This extensions... well extends the capabilities of VSCode's built-in indentation and alignment support.

  • When pressing enter, any leading whitespace (indentation + alignment) will be 1:1 copied to the new line
  • When configured to indent with tab characters (editor.insertSpaces: false), pressing tab within the indentation will insert a tab character, otherwise it will insert spaces

Contributing

Read through the Contribution Guidelines if you want to contribute to this project.

License

VSCode Smart Indent/Align is licensed under both the Mozilla Public License 2.0 AND the Apache License 2.0.
For more information about copying and licensing, see the COPYING.txt file.