Author Topic: Specific Formatting  (Read 2883 times)

turbofandude

  • Guest
Specific Formatting
« on: June 03, 2012, 07:13:36 am »
Hey guys,

Maybe a silly first question, but I recently discovered the wonders of AStyle and the formatting configuration. What a blessing! I come from Visual Studio/Windows, so I am not used to Code::Blocks yet.

I have a formatting configuration question: is there a way I can configure it to place my closing braces in line with the declaration or keyword which opened them?

The settings I have set it as such:

for(int x=0;x<20;x++) {

    }

where as I prefer it

for(int x=0;i<20;x++) {

}

Thanks ahead of time,

--
Collin Biedenkapp

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Specific Formatting
« Reply #1 on: June 03, 2012, 09:58:06 am »
Did you play with the astyle settings in "Settings -> Editor -> Formatting" and probably the autoindent-settings in "Sdettings -> Editor" ?

It looks like the "Java-style" provided by astyle.