12

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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
T Jacobs
  • 175
  • 1
  • 1
  • 8

1 Answers1

24

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...

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Zdeslav Vojkovic
  • 14,391
  • 32
  • 45