Autoformatter or indenter for XC language

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
sprajagopal
Member++
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
mon2
XCore Expert
Posts: 664
Joined: Thu Jun 10, 2010 11:43 am
Contact:

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:

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

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

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

Return to “Development Tools and Programming”

Who is online

Users browsing this forum: No registered users and 11 guests