News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Source Formatter Plugin

Started by somniantis, July 17, 2017, 08:43:26 AM

Previous topic - Next topic

somniantis

Does anyone know if there's an easy way to indent all template functions and classes following the template specifier? The formatter plugin doesn't seem to have an option for this. Please and thank you :)

Commaster

You can adjust the template in Settings -> Editor -> Source formatter and then select the text, open the context menu and press "Format use AStyle".

somniantis

Don't see any formatting options for templates. Just seeing if anyone has a solution. All I want is this:


template <typename T>
    void Foo(){

    }


instead of this:


template <typename T>
void Foo(){

}

stahta01

I do NOT see that option on link below.

http://astyle.sourceforge.net/astyle.html

You can see if I missed it or request it on Astyle site.
After, Astyle adds it; you can then request here the CB updates the Astyle version.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

somniantis