Solved

Need Code Formatter for C++/C

Posted on 2011-09-30
6
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

688 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