Autoformatter or indenter for XC language
-
- Member++
- Posts: 18
- Joined: Thu Jul 23, 2015 4:22 pm
Autoformatter or indenter for XC language
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.
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
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
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