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,
I don't run any recent uVision (yes, I have a valid license but all projects I work with are certified using older tool versions) so I haven't checked what may have changed in recent versions of the tools.
But uVision have a Tools menu. And it contains a choice Customize Tools Menu...
Select that command and then press the Help button - that should give you enough information to get uVision to run external programs to process the contents of files you have selected in the editor.
And as I said, indent is a quite good program - and there are other tools with similar capabilities.
So you just press a key or select a menu choice to run your source file through indent.
Hi,
JUST FORGET MY BY THE WAY, it was a joke, and thank for your advice about Indent anyway.
I will try it and give some feedback to HOW TO.
Thx