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 1.1k times
2
Zanna
- 72,312
hasanghaforian
- 741
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
- 77,855
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
- 182