Autoformatter or indenter for XC language

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
Posts: 18
Joined: Thu Jul 23, 2015 4:22 pm

Autoformatter or indenter for XC language

Postby sprajagopal » Thu Feb 16, 2017 11:09 am

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.
User avatar
XCore Legend
Posts: 1061
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Thu Feb 16, 2017 3:01 pm

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: ... formatting ... eFormatter ... kages.html

Who is online

Users browsing this forum: annetteks69 and 12 guests