Author Topic: Source Formatter Plugin  (Read 534 times)

Offline somniantis

  • Single posting newcomer
  • *
  • Posts: 5
Source Formatter Plugin
« on: July 17, 2017, 08:43:26 am »
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 :)

Online Commaster

  • Multiple posting newcomer
  • *
  • Posts: 72
Re: Source Formatter Plugin
« Reply #1 on: July 17, 2017, 09:59:04 am »
You can adjust the template in Settings -> Editor -> Source formatter and then select the text, open the context menu and press "Format use AStyle".

Offline somniantis

  • Single posting newcomer
  • *
  • Posts: 5
Re: Source Formatter Plugin
« Reply #2 on: July 17, 2017, 01:43:58 pm »
Don't see any formatting options for templates. Just seeing if anyone has a solution. All I want is this:

Code: [Select]
template <typename T>
    void Foo(){

    }

instead of this:

Code: [Select]
template <typename T>
void Foo(){

}

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5970
    • My Best Post
Re: Source Formatter Plugin
« Reply #3 on: July 17, 2017, 03:00:28 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline somniantis

  • Single posting newcomer
  • *
  • Posts: 5
Re: Source Formatter Plugin
« Reply #4 on: July 19, 2017, 02:48:56 am »
Okay, thank you.