- Home /
Mono "Go to declaration" missing
My Monodevelop is not showing "Go to declaration" when I right click a function, member, or anything else... I'm using Version 2.4.2
Any Idea?
No Idea? Really need that stuff
Problem still there... working without code refactoring is nearly impossible argh...
Answer by davedx · Feb 14, 2012 at 11:12 PM
After spending the last couple of hours wondering why MonoDevelop wasn't giving me 'Go to declaration' or refactoring, a colleague kindly informed me that you need to have the Solution pad shown for it to work.
i.e. click View -> Pads -> Solution.
When I enabled it, the 'Go to declaration' etc. options magically appeared in my right click menu and the keyboard shortcuts worked.
Hallelujah! Not sure why it works like that, but there you go.
After spending the last couple of hours wondering why $$anonymous$$onoDevelop wasn't giving me 'Go to declaration' or refactoring, a colleague kindly informed me that you need to have the Solution pad shown for it to work.
i.e. click View -> Pads -> Solution.
When I enabled it, the 'Go to declaration' etc. options magically appeared in my right click menu and the keyboard shortcuts worked.
Hallelujah! Not sure why it works like that, but there you go.
This isn't working for me in 4.3
I suspect its because it no longer shows a solution when I double click the script in Unity... just the file. Solution window is empty.
It can help to make sure the $$anonymous$$onoDevelop project is synced with Unity by selecting the "Sync with $$anonymous$$onoDevelop" option under the Edit menu
Thanks. "View -> Pads -> Solution" worked, but only after I also quit $$anonymous$$onoDevelop and restarted it. Normality restored.
Answer by KwahuNashoba · Oct 01, 2015 at 12:06 PM
Sorry for digging up this question but this problem is still present so I guess this might save someone from frustrations. I switched to MonoDevelop 5.9.6 (http://forum.unity3d.com/threads/monodevelop-unity-5-9-preview-release.350016/) which is still under beta (I'm not sure what is going on with this since last post is from 2012. on this topic) and this problem occured. I tried all listed here in answer and comments but it didn't worked for me. The problem is that in Unity editor under preferences -> external tools -> external script editor a VSCode was set (I tried to find salvation in it but found out that debugging on phone won't work). So when I switched to MonoDevelop 5.9.6 (not the one listed in in drop down, it's the old one, go to browse and find it) Go to declaration, Find references and all other "can't code without" functions appeared :)