Auto indent in 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.

1

4 Answers

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

2

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

Plugins -> Plugins Admin

or from GitHub: IndentByFold.

I type some code, select it and then use:

menu TextFXTextFX EditReindent C++ code.

TextFX should be installed by default.

1

Auto-indent stopped working for a bit when I accidentally started recording a macro. I stopped it by clicking the "stop recording" button at the end of the toolbar.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like