News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Can I format comments in C::B?

Started by wtfisgoingoff, April 03, 2020, 05:45:45 AM

Previous topic - Next topic

wtfisgoingoff

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

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

wtfisgoingoff