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,
Hi Westermark, Thank for your quick answer. I don't really understand why you said " the type of person who likes to include threat". It was only my point of view and my choice after 3 days of using µVision, and i have used IAR for 3 years in my last company.
I want just let you know that when i have used IAR for 3 years and i always want to compare between IAR and KEIL because i love all debug utilities in µvision, they are more friendly than IAR. And more, writting code is a habit, if you have to change the tool, you always wish to have some same little functions which you got used to.
That's why my question is HOW TO ( i'm sure that IT CAN ) but HOW . Can we intergrate the function auto formatting code in µvision itself ? And then auto formatting code by a short cut for example.
Thx
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.