Reformat

Dear All,

How to automatically reformat our code in µVision2 ? so that the code will have proper tabs to view it nicely.
I have µVision2 V2.20a, but I can not find it. I only find "Go to matching brace" which is very useful too of course.

I see this reformat feature in a freeware c editor/compiler such this http://www.cs.virginia.edu/~lcc-win32/

thanks

Parents
  • "How to automatically reformat our code in µVision2 ? so that the code will have proper tabs to view it nicely."

    uVision doesn't re-format existing code - you need a 3rd party tool to do that.
    However, it can auto-indent new code as you write - see the Manual for details.

    You have read the Getting Started Guide, haven't you...?

    PS:
    Avoid TABs - use only spaces.
    The interpretation of TABs is entirely application-dependant - if you format with TABs in uVision, you have no guarantee whatsoever that it will look right in any other application or printout.
    But you know where you are with spaces.
    Avoid TABs.

Reply
  • "How to automatically reformat our code in µVision2 ? so that the code will have proper tabs to view it nicely."

    uVision doesn't re-format existing code - you need a 3rd party tool to do that.
    However, it can auto-indent new code as you write - see the Manual for details.

    You have read the Getting Started Guide, haven't you...?

    PS:
    Avoid TABs - use only spaces.
    The interpretation of TABs is entirely application-dependant - if you format with TABs in uVision, you have no guarantee whatsoever that it will look right in any other application or printout.
    But you know where you are with spaces.
    Avoid TABs.

Children
More questions in this forum