views:

688

answers:

2

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!

+2  A: 

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).

Donut
+2  A: 

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.

sergiopereira
This is correct, but every time you close the page, it will clear the outlining. The same is true of Donut's solution, of course, but because its a macro, you can recreate those outlinings with one key command
Michael La Voie