10

When I Ctrl+Click a method or class in IntelliJ Rider, I'd expect it to go that class/method. However, instead it brings up a "Select Target" dialog which always has two copies of the same class in it. Choosing between two of the same class is a pretty dumb step - does anyone know how to get rid of the second copy of the class so I can just go straight to the class without having to choose?

Screenshot of the behavior below:

enter image description here

Darkhydro
  • 1,992
  • 4
  • 24
  • 43

3 Answers3

5

File -> Invalidate Caches... -> Uncheck optional checkboxes -> Invalidate and Restart

Invalidating only ReSharper caches and restarting helped me for Rider 2021.3.3.

enter image description here

Rub
  • 160
  • 2
  • 12
0

Rider just released an update today that fixed this. Huzzah!

Darkhydro
  • 1,992
  • 4
  • 24
  • 43
  • I'm having the same issue right now, any idea what changed ? – Shraneid Feb 11 '22 at 00:42
  • @Shraneid Sadly Rider has degraded back to this for me as well after a recent update. – Darkhydro Feb 17 '22 at 18:46
  • I think it's not the update that is fixed the problem but rather a cache invalidation that should occur when the update is installed. I tried to invalidate caches manually and it helped, like @Rub suggested in his answer. – Xander Jun 26 '23 at 12:01
-2

I resolved it by uninstalling Resharper.

dpjune
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 22 '22 at 00:57
  • Don't think this is a valid solution. I'd like to continue using Rider/ReSharper, not getting rid of it completely because of some inconvenience. – Xander Jun 26 '23 at 11:59