Search code examples
asp.net-mvc-3razorresharperresharper-6.0

R#6 - Suggests "Use directory" in razor views. How to disable?


I am using R#6 and when I edit some razor views, R#6 suggests that I "use directory".

(Whine :)) I dont want to! How do I turn off this annoyance? I have searched through R#6 options. It is definitely R# since the annoyance goes away when i suspend R#.

In the printscreen, R# wants to change /SignUp to ../Signup.

It is incorrect because the view is the layout and could be in any directory structure. So i want it to be /Signup

enter image description here

Solution: As derigel states. Wait for the warning to show. Hit escape. Then CTRL+Enter. A mini menu appears where you can suppress or change the warning severity. I changed the warning severity to "do not show"


Solution

  • Valamas, OffBySome gave you really good advice, but you still able to disable this warning locally by comment or generally, at all. It's some UI problem here - first, press escape to disable popup, and then, press alt+enter and you will bring few options how to disable this warning.