We always write code like this formal:
void main(){
if(){
if()
}
But when I use Notepad++, the display is:
void main(){
if(){
if()
}
How do I use Notepad++ to auto indent?
Thanks to Jonathan, I have set it, but it does not take any effect. The snapshot is below:
I am using Notepad++ version 5.1.3.
Best Solution
Notepad++ will only auto-insert subsequent indents if you manually indent the first line in a block; otherwise you can re-indent your code after the fact using
TextFX > TextFX Edit > Reindent C++ code
.