Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Request Auto-Indent option to choose indent style #821
This feature promote only K&R indent style and become a nightmare if we prefer another style like Allman or Whitesmiths.
I submit that Auto-Indent feature include an optional option to choose between "Previous line" (Allman), "Block Indent" (Whitesmiths), or "Smart Indent" (K&R) methods like NppAutoIndent plugin.
Nb: Notepad++ applied "Previous line" method before 6.7 release.
It's could be great that Notepad++ detect indent style of current document and switch Auto-Indent to right method.
Nb: more indent styles exists, see https://en.wikipedia.org/wiki/Indent_style
My personal skill is to use Whitesmiths style if I create JS or PHP file, Allman style for CSS file, but I apply K&R (or other) style while I edit a third party file. I'm most aware than Notepad++ ^^
we are closing this issue due to its age and multiple newer notepad++ versions since it was filed.
please update your notepad++ to the latest version Notepad++ 7.6.6.
thank you for your help and best regards.