CodeLite formatting

T Jacobs picture T Jacobs · Oct 3, 2012 · Viewed 10.7k times · Source

I use the CodeLite IDE for C++ development, but I have not found any way to select -> format the text properly.

This:

if(1 == 1){
return 1;
}

should be formatted as:

if(1 == 1){
   return 1;
}

Is there a way to select a block of code and then format it using the CodeLite IDE?

Answer

Zdeslav Vojkovic picture Zdeslav Vojkovic · Oct 3, 2012

Go to menu PluginsSource Code FormatterFormat Current Source or just press Ctrl + I.

If you want to set up your formatting preferences, choose menu PluginsSource Code FormatterOptions...