Menu

code beautification for dev-c++?

mathprof
2007-08-22
2012-09-26
  • mathprof

    mathprof - 2007-08-22

    Does anyone know of a way to autoformat C/C++ code in Dev-C++? I can't seem to locate a formatting/beautification utility.

    Thanks,
    Josh

    P.S. Sorry for the cross-post; I'm not getting an answer in dev-cpp-users.

     
    • Anonymous

      Anonymous - 2007-08-22

      Write it beautiful in the first place! ;-)

      Dev-C++ has no such facility. When I am dealing with 'foreign' code that needs formatting to my preferences I use MS Visual C++ 2005 Express Edition (free), or CodeWright (very not free). You might also try using GC GreatCode ( http://sourceforge.net/projects/gcgreatcode/ ), but personally I find that far too fussy and complex for most tasks.

      Clifford

       
    • Ed Neukirch

      Ed Neukirch - 2007-08-22

      Artistic Style 1.21 found on Source Forge works fairly well. Set it up under configure tools in Dev.
      My parameters are: --style=kr --pad=oper <SOURCENAME> Check the docs for all the details. Your updated file must be saved for it to be modified.

      Ed

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.