How to do this?

Post here any ideas/problems/suggestions you have regarding CodeLite's CodeFormatter (AStyle) plugin
evstevemd
CodeLite Guru
Posts: 352
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

How to do this?

Post by evstevemd »

I have tried options but I get closer but not as I want. I wonder if I'm missing something. Please bear with me if my style is unacceptable ;)

Code: Select all

class TestClass : public wxFrame{
        public:
                void myMethod(int x, bool y){
                        if(!y){
                                sqrt(x);
                         }
                         else{
                                 pow(x, 3);
                         }
                 }

}
I have problem, among some of them is if else issue and braces

Code: Select all

if(!y){
          sqrt(x);
          } else{
                   pow(x, 3);
}

CodeLite 15.x
CodeLite is awesome, I just Love it!