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.
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
Read through the Contribution Guidelines if you want to contribute to this project.
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.