Author Topic: Can I format comments in C::B?  (Read 786 times)

Offline Smilence

  • Multiple posting newcomer
  • *
  • Posts: 11
Can I format comments in C::B?
« on: April 03, 2020, 05:45:45 am »
Using AStyle can format code,but is there a way to format comments too? I want to align comments,but I found no setting about comments in AStyle plugin


before:


some code   //asdfasdf
some code        //asdfasdf

after:



some code         //asdfasdf
some code         //asdfasdf

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9604
Re: Can I format comments in C::B?
« Reply #1 on: April 03, 2020, 08:37:56 am »
Please, use the aligner plugin for that purposes. You can configure it easily to do exactly what you want.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Smilence

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Can I format comments in C::B?
« Reply #2 on: April 03, 2020, 01:15:12 pm »
Thanks a lot.  ;D