Solved

Need Code Formatter for C++/C

Posted on 2011-09-30
6
279 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fully specialized class template function 21 136
Compile GLUT with Visual Studio 2015 1 149
How to split this in C++ 4 103
Installshield for Embarcadero EX 10.1 Berlin 4 42
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

823 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