Auto indent in Notepad++

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


You can use a plugin (IndentByFold).
You can either get it by going to

Plugins -> Plugins Admin

or from GitHub: IndentByFold.