How to toggle certain comments in multiple files in visual studio 2010?

85 Views Asked by At

I have an ASP.NET MVC 4 Website with multiple files(controllers) that have actions which accept [RequireHttps]. When I am working locally I want to be able to comment out all of these via a toggle/shortcut. I own CodeRush with Visual Studios 2010. Is this possible to do?

2

There are 2 best solutions below

0
On

Yes, this is possible. However, this task requires creation of a new CodeRush plug-in.

0
On

You could do a project-wide search and replace of [RequireHttps] to /*[RequireHttps]*/ or vice versa. You can record these as macros in Visual Studio.