ericgr
ericgr

Reputation: 829

Is there a way to collapse javascript or CSS in Visual Studio 2008

It would be nice to have the ability to create 'regions' in js and css files. Much easier to work with. I couldn't find anything on Google about this, but even Dreamweaver can do this.

thanks!

Upvotes: 9

Views: 2647

Answers (2)

sergiopereira
sergiopereira

Reputation: 2066

you can select the block you want to hide and do CTRL+M,H (Edit --> Outlining --> Hide Selection) With enough time someone could write a macro or adding to identify all functions or objects and outline them all separately.

Upvotes: 8

Donut
Donut

Reputation: 112835

From what I can tell after a little bit of research, there's no native support in VS2008 for collapsible "#regions" in JavaScript or CSS files... however, this blog post describes a workaround for JavaScript (and it looks like the example could be extended for use with CSS files as well).

Upvotes: 4

Related Questions