Before, in Windows, I used notepad++ and it has an option TextFX->Edit->Reindent C++ code for reformatting code. Now I use Ubuntu 14.0.4 so I use notepadqq as alternative for notepad++. How I can achieve a similar result in notepadqq?
Asked
Active
Viewed 9,484 times
2
Zanna
- 69,223
- 56
- 216
- 327
hasanghaforian
- 711
- 4
- 13
- 25
2 Answers
3
Notepadqq doesn't have a auto-formatting code feature like the one in Notepad++. I recommend using SublimeText instead as an alternative. You can download it from their website https://www.sublimetext.com/3
There are plugins for autoformatting. One such plugin is SublimeAStyleFormatter. Install the plugin (Here is a guide how to do that). Once installed, you can autoformat C/C++ code by pressing Ctrl+K, Ctrl,F key combo.
Anwar
- 75,875
- 31
- 191
- 309
0
From top menu : Language -> C++ (or whatever language you like).
You can also change indentation width from Settings -> Preferences -> Languages.
Edit : It doesn't have auto indentation though.
Mustafa Yılmaz
- 172
- 8