问题
I have a User class which I created.
However when i CTRL+left mouse click on it's instances , it suppose to go to the class "User" itself :
But it doesn't. ( it should. in vs2010 it works).
But if I right click on it and choose : "goto declaration"
It does work : and redirects me to : (the User Class)
resharper ver : 7.1.3000.2254 vs 2012 pro
Here are the current settings :
- How can I fix it ?
Edit.
After another check, it's also with vs2010. I guess the problem is compatibility with win8 64bit. (I have no addons installed. and did try reset settings etc.).
edit 2
I dont know if it's helping but when I pres ctrl and mouse over the class it does underline it :
and when I press click ( with ctrl) - it opens the surround with tool tip :
回答1:
Check that you also have the following setting turned on:
With this setting turned off, click navigation doesn't work.
回答2:
We've been fixing some of the Ctrl+Click related issues in the R# v8 line — possibly this case is already there.
Could you try an early preview build for v8?
回答3:
This may not be the OP's situation, but i'm using VS on Win8 running in VMWare on a Mac. VMWare by default, seems to enable ctrl+left mouse click as a right click.
So holding control and hovering was underlining the object as the OP says, but clicking would bring up the right click menu in windows.
Disabling the ctrl+click shortcut in VMWare fixed it for me
来源:https://stackoverflow.com/questions/16737912/go-to-declaration-does-not-work-in-resharper-on-vs2005-2008-2010-2012-on-win8-64