views:

256

answers:

2

Is it possible to create code regions in JS files in Visual Studio 2010?

This method works in 2005, but I can't get working in 2010.

A: 

There's an interesting post here : http://blog.devarchive.net/2008/04/using-region-directive-with-javascript.html on how to do this using Macros in Visual Studio.

Hope that help.

Update I just realised that someone has already referenced this link in the comments.

Jamie Dixon
+3  A: 

Here is a very cool VS2010 extension for Javascript and CSS outlining http://jsoutlining.codeplex.com/

Alex Yeung
That works really well. Thanks Alex.
Mr. Flibble