Auto indent in Notepad++

notepad

I want to auto indent my text using Notepad++. Is there a way to do this? Or do I have to install any plugin?

I have tried all I know in Notepad++, but it seems things are not working. I have even used the shortcut key Ctrl + F, but that works fine in Eclipse, but Notepad++ gives a find textbox instead.

Best Answer

I want to auto indent my text using Notepad++. Is there a way to do this?

You need to enable "Auto-indent".

Prior prior to v7.8.3:

  • "Settings" > "Preferences > "MISC." > tick "Auto-indent" then press "Close"

    enter image description here

Later versions:

  • Settings "Settings" > "Preferences > "Auto-Completion" > tick "Auto-indent" then press "Close"

    enter image description here