Dear all,
I was a user if IAR, and in IAR there was a function which is called " auto indent". When you use it, it can auto formatting your code, make it more clear to read.
For example :
When you type below ( usually copied from another text file which was not tabified correctly):
void SetupData(uint16_t data) { data=data<<8; GPIOB->ODR=(data); }
Use the function Auto Indent with this block of code can auto formatting your code as below :
I want to know if Keil and µvision can do it, it saves a lot of time for me. Without this function, i won't buy µvision but will investe in IAR tools. Thank all,
OK,
The astyle is really interesting to format your code. But HOW TO intergrate it in KEIL to use it quickly, i don't know how to do it ( reseache for some hours but can't find anything)
It's sad when KEIL don't have.. or i don't know
KR,
No. It's an opportunity for you to develop a deeper understanding.
The Artistic Style distribution includes an exe file that can process a source file when the file name is given on the command line.
Did you look at the information I did post, about the Tool menu in uVision, and how to add own menu choices there?