This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HOW TO : auto formatting code in µvision version 4

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 :

void SetupData(uint16_t data)
{
  data=data<<8;
  GPIOB->ODR=(data);
}

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,

0