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

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 Reply Children
  • Nothing forces you to use uVision or its editor if you prefer something else!
    true - to an extent.
    If you insist on using the IDE (I can not use it for other reasons) you are locked to the Keil attempt at an editor.
    At a time I used another compiler (product contained a '51 and an XA - did not want to switch compiler back and forth). That compiler allowed inclusion of "your" editor in the IDE. I wonder why Keil never allowed that. (oh well, now it's ARM and who knows what will (not) happen)

    Erik

  • "If you insist on using the IDE ... you are locked to the Keil attempt at an editor."

    No, you're not.
    You can use an external editor - although it won't be "integrated" in the IDE.

    I frequently edit files in CodeWright, save the file, then hit the 'Compile' button in uVision.

    I even have an item set up in my uVision 'Tools' menu to "Open the current file in CodeWright"

    I do the same with Borland...

  • "If you insist on using the IDE ... you are locked to the Keil attempt at an editor."

    No, you're not.
    You can use an external editor - although it won't be "integrated" in the IDE.


    Ok Andy, I'll restate

    If you insist on the editor being part of the IDE ...

    I know very few (evidently you are one of them) that work both outside and inside the IDE.

    Erik

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

    Sorry, was wrong, it isn't freeware. The software is "free for non-commercial use".

    Nothing forces you to use uVision or its editor if you prefer something else!

    Of course. Only prefer the Eye of IDE.

  • "Only prefer the Eye of IDE."

    That's the problem with any "all-in-one" solution - whether it's a combined TV+DVD+VCR, an "integrated" Hi-Fi system, or a software IDE - you are stuck with the "integrated" components.

    Maybe the Eclipse project offers some hope - with an Open Development Environment, so you can easily "integrate" your favourite tools...

    http://eclipse.org/