Zhi Wang
Zhi Wang

Reputation: 1168

Visual Studio plugin for collapsing C++ codes

I want a Visual Studio plugin to collapse C++ code in visual. For example, I want to collapse the statements in a if block (as shown below). I know Visual Studio has the "outline" menu, but it doesn't seem to work well for me because it sometimes collapses macro defines and other things.

Does anyone know of a tool that can help me? collapsing example

Upvotes: 9

Views: 2789

Answers (2)

mvp
mvp

Reputation: 116407

I have been using Visual Assist X plugin for Visual Studio with great success. It can do what you are looking for and then a lot more.

Unfortunately this is not free software, but this is one of those developer tools that improve your productivity a lot and really worth paying for.

Upvotes: 0

Eric Z
Eric Z

Reputation: 14535

You need to enable this feature :

Tools -> Options -> Text Editor -> C/C++ -> Formatting -> check everything in "outlining"

Then, reopen the source file to reload outlining.

(PS. This works at least in Visual Studio 2008.)

Upvotes: 24

Related Questions