TIGSource Forums

Developer => Technical => Topic started by: happymonster on November 09, 2013, 03:03:44 AM



Title: Best .Cpp / .h code formatting program?
Post by: happymonster on November 09, 2013, 03:03:44 AM
I use Microsoft Visual Studio Express 2012 and do use the formatting tools there to clean up indenting, etc.. But I find the options a bit limited.

What free programs do you recommend to have more formatting options for indentation, braces, etc..? :)


Title: Re: Best .Cpp / .h code formatting program?
Post by: JakobProgsch on November 09, 2013, 05:53:50 AM
I have used tools like astyle and ClangFormat with success. Not sure how available those are for windows (and how accessible they are perceived by someone who is used to VS ;))


Title: Re: Best .Cpp / .h code formatting program?
Post by: happymonster on November 09, 2013, 10:02:01 AM
Oh no, do they require CLI magic?  :(


Title: Re: Best .Cpp / .h code formatting program?
Post by: JakobProgsch on November 09, 2013, 11:25:33 AM
At least the way I use them...
But then I never get how programmers can type thousands of lines of C++ but then be afraid of having to type single line commands into a command line :p


Title: Re: Best .Cpp / .h code formatting program?
Post by: happymonster on November 09, 2013, 11:36:19 AM
That's only because there isn't a GUI that does my coding for me.. ;)


Title: Re: Best .Cpp / .h code formatting program?
Post by: Snovi on November 11, 2013, 05:48:47 AM
I've always been partial to SourceFormatX.


Title: Re: Best .Cpp / .h code formatting program?
Post by: LtJax on November 13, 2013, 04:50:30 AM
I have used tools like astyle and ClangFormat with success. Not sure how available those are for windows (and how accessible they are perceived by someone who is used to VS ;))

clang-format is available for VS 2012, but not for the express version, because it does not allow plugins :-/ You can still use the windows command line tool from http://llvm.org/builds/ though.