Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to disable custom patterns with a comment in Resharper

In Resharper normal hints are able to be disabled by a comment via the

Disable once with comment

option on the context menu when you press <ctrl-enter>

With custom structural search patterns

http://blog.jetbrains.com/dotnet/2010/08/19/highlighting-custom-patterns-with-resharper/

I can't find a way to do this. There is no option on the context menu to disable the hint.

Is it possible to disable custom patterns with comments?

like image 778
bradgonesurfing Avatar asked Apr 11 '14 08:04

bradgonesurfing


1 Answers

Just wanted to tell you, issue has been resolved.

You can add a suppression key now (when editing the pattern), which is used in the comment then.

https://blog.jetbrains.com/dotnet/2016/06/20/resharper-ultimate-2016-2-eap-build-4/

like image 169
Matthias Avatar answered Nov 14 '22 09:11

Matthias