3

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.

2

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

You need to enable "Auto-indent":

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

    enter image description here

|improve this answer|||||
  • till 2020, that setting had gone somewhere – Bastian Ng Mar 28 at 3:09
2

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

Plugins -> Plugins Admin

or from GitHub: IndentByFold.

|improve this answer|||||
0

I type some code, select it and then use:

menu TextFXTextFX EditReindent C++ code.

TextFX should be installed by default.

|improve this answer|||||
  • thanks very much, but I used Plugins > Indent By Fold > Reindent file. There was no need to select a particular portion. It indents the whole file. If notepad++ doesn't have this plugin by default, one will have to download it – Bernard Boakye Jul 24 '15 at 10:10

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.