Solved

Need Code Formatter for C++/C

Posted on 2011-09-30
6
276 Views
Last Modified: 2012-05-12
Hi All,
Hi,

Does anyone remember using a code formatter for C/C++ that would draw/link all your if statements, and brackets? I can't remember if it was part of Visual studio 3-6, or was it a separate application.

I remember using one, back in the 90s.

Thanks.

Matt
0
Comment
Question by:mlong219
6 Comments
 
LVL 40

Expert Comment

by:evilrix
ID: 36895017
Visual Studio will do that for you.

CTRL-A to select all
CTRL-K followed by CTRL-F to format the selected code.

http://msdn.microsoft.com/en-us/library/999b219z.aspx

As far as I know this works on all versions of Visual Studio and in all languages (including standard C++)
0
 

Expert Comment

by:bssurana
ID: 36896265
AS mentioned above you can use that option. Else you can user visual assist from tomato. this tool is preety good.
0
 

Author Comment

by:mlong219
ID: 36932431
I'm aware of these features in Visual Studio. There was another tool/option I used back in the 90's that would DRAW a branch showing how, if statements were matched up. Similar to the following embed image. Format Code
0
 
LVL 3

Accepted Solution

by:
kuroji earned 500 total points
ID: 37233569
While not as pretty as you describe in your diagram
have a look at GNU Cflow
A very similar question was asked on stack overflow
0
 
LVL 40

Expert Comment

by:evilrix
ID: 37419290
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now