How do I get Resharper to ignore the Designer file when navigating to a class?

StackOverflow https://stackoverflow.com/questions/421278

  •  05-07-2019
  •  | 
  •  

Question

In Resharper, if you ctrl-click the name of a class to naviate to its definition and that has a designer fie, Resharper will ask if I want to go to the X.cs or X.Designer.cs because the class is partial.

Does anyone know how to disable this annoyance so that it just goes to X.cs and ignores designer files?

Was it helpful?

Solution

A workaround I use is Ctrl-Shift-N (ReSharper classic bindings) or Ctrl-T (Visual Studio bindings) and start typing the class name. If you have your classes in files with the same name, you'll then be able to choose the correct one from the dropdown list.

OTHER TIPS

This is a good question. Whenever I have a question like this, I file a suggestion at the ReSharper JIRA site. I'd recommend you do the same.

http://www.jetbrains.net/jira/browse/RSRP

I don't believe you can do what you want at the moment, even with the latest nightly build.

your best bet is to download the nightly build i have no idea if they addressed this, although i think this is a feature, not an issue.

Nightly Builds

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top