0

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?

user1751121
  • 143
  • 1
  • 6

2 Answers2

0

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.

Matthew Strawbridge
  • 19,940
  • 10
  • 72
  • 93
0

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

Alex Skorkin
  • 4,264
  • 3
  • 25
  • 47