Page 1 of 1

Autoformatter or indenter for XC language

Posted: Thu Feb 16, 2017 11:09 am
by sprajagopal
I understand XC is similar to C but is there an autoformatter tool that normalizes spaces/tabs/hanging indents, etc for the XC language? I'm hoping someone has customized astyle, GNU Indent or some other tool for this purpose. Any help is greatly appreciated, thank you.

Re: Autoformatter or indenter for XC language

Posted: Thu Feb 16, 2017 3:01 pm
by mon2
Hi. A few ideas:

1) create an mbed account and cut & paste your code into the cloud compiler and select the "magic wand" icon to quickly format your code

2) download and use Sublime Editor which is a great tool on its own but you can tweak for C code formatting. Have not tested the recommended plug-in but review this post:

http://stackoverflow.com/questions/2134 ... formatting

https://packagecontrol.io/packages/Subl ... eFormatter

http://www.freshtechtips.com/2015/03/su ... kages.html