Is there something I need to do to get MonoDevelop's "Go to Definition" to work properly? - monodevelop

I have this line of code in a .cs file:
_contextOwner.AsyncLoadings.Add(Application.LoadLevelAdditiveAsync(_sceneNames[i]));
If I select _contextOwner, I can right-click and do "Go to Definition" to jump to the code where it is defined.
If I select AsyncLoadings, the "Go to Definition" option is not in the right-click menu. If I hover the pointer on it, it shows a tooltip with its type, so it does recognize the definition.
I'm using MonoDevelop version 4.0.1, which is attached to the version of Unity we are using.
According to this:
http://answers.unity3d.com/questions/189091/mono-go-to-declaration-missing.html
The problem existed in MD 2.4.2 a few years ago. I would be surprised if it were not fixed in that time... maybe this is a Unity issue?

Related

PhpStorm 2017.1 - How Do I Get the Project Search Results to Appear As the Bottom Panel By Default?

I just upgraded to PhpStorm 2017.1 and noticed that when I do a directory search using the project explorer on the left hand side of the screen, the results now appear as a pop-up modal.
There is an option to get the results to appear as the bottom panel (like in previous versions) on the modal, but I would like it to do that by default.
How do I get the old behavior back?
To have Enter work as Ctrl+Enter, please vote for IDEA-169996.
Note that you can switch to the old dialog by deselecting ide.find.as.popup in Registry: Help | Find action, type Registry to locate it, find the option there and deselect the checkbox

PhpStorm - Highlight active file in project navigator

Does anyone know how to highlight the current file in the project navigator, or a hotkey to expand folders to the active file?
I have looked around and couldn't find anything that points to this as an option.
Here is a nice feature: Autoscroll to Source and Autoscroll from Source.
It is available in all IntelliJ products .
On Demand
Should be used if you do not like when your Project View panel gets changed/moves without your consent.
Navigate | Select in... | Project View
Alt+F1, 1 for Windows/Linux
⌥+F1, 1 (or fn+⌥ Opt+F1, 1) for Mac OS
You may also click on "target like" icon on actual Project View panel with your mouse:
If you wish to use shorter/single shortcut instead of standard 2-step shortcut:
install "Extra Actions" plugin
assign custom shortcut to newly provided "Select in Project" action
As of some 2017.x version (or maybe even 2016.x) the IDE has own dedicated Select in Project View action (so no need for additional plugin). You can find it in Keymap under the Other branch (hint: use search box to narrow the list).
Automatically
Can be used if you do not mind (or even want) to have Project View panel keep focused on currently edited file (so it scrolls/moves up and down/expands when needed).
NOTE: with frequently switching between the files (e.g. CSS & HTML) when you have a lot of files in your project such "scrolling" may become quite annoying pretty fast (especially if such files are located in the invisible-right-now part of the project tree).
Activate Autoscroll from Source option in Project View panel (right click on tool window header bar/title or use menu under "gear" icon):
In modern versions (2020.3 and newer) that option was renamed and is now called Always Select Opened File:
Just click the circular icon (with tooltip Scroll from Source) to navigate in the project directory tree and highlight the corresponding active file in the PhpStorm editor.
On PhpStorm 2020.3 you have to click the cog icon in the project pane and select Always Select Opened Files:
The above answers are all valid but unfortunately you'll have to enable them for each project.
There's a plugin from Jetbrains that will enable this behaviour by default for all new projects.
http://plugins.jetbrains.com/plugin/7575?pr=

Using visual studio's spy++ tool:

I am trying to make a program that will click the button of another program. I have been informed that I need to use spy++ in order to get the ID of the button that I want to click, so I am using it right now. I have found the window which contains the button I wish to get the button ID from (there are 3 buttons in the window).
Where in spy++ can I find the specific buttons ID? I looked in the "window properties" of the window that contains the buttons and didn't find it. There are 3 buttons there so I am guessing I will find 3 button ID's somewhere but I haven't yet.
After you use Spy -> Find Window, select button you are interested in with Finder Tool:, make sure that Show Properties is selected, then press OK. On General tab you will see Control ID which is the value you are looking for.
Another way is to select Spy -> Windows and find you button in window hierarchy, then right select it and press properties, which will show you the same general tab as above.
Third alternative is to select parent (ie. dialog window) for your button (ie. it will be of Dialog class), and register for WM_COMMAND messages from it. Then after pressing it you button ID will be displayed as wID: XX in message window.
I have tested it on Calculator under win7 and win8, funny but spy++ from VS2005 didnt work for me on win7, while spy++ from VS2008 did work on win8. Also there is a 64 bit version of spy++.
You have to look in the properties of the button, not in the properties of the parent window (at low level buttons are in fact some special kind of windows).

How do you get Monodevelop back to using English for its language

I have no idea how it happened, but suddenly when I launch Monodevelop, the menus appear in a language other than English. I have tried reinstalling the application as well as manually removing artifacts in other directories under Library. No luck. After a reinstall, it loads in another language still.
You can change the Language under the options/preferences dialog.
For me the shortcut keystroke is 'command + comma'
Or it is the third menu entry under MonoDevelop menu.
Select the first child entry in the left tree view. "Visual Style"
On the right there are three tabs across the top. Select the first. "General"
The "User Interface Language" setting is the second combo box on that screen.
Change that and click OK at the bottom of the screen. Should be on the right.
Restart MonoDevelop.
Can you please open a bug on https://bugzilla.xamarin.com, including the Version Info from MD's about dialog, and attach your preferences file "~/Library/Preferences/MonoDevelop-2.8/MonoDevelopProperties.xml"?

IntelliJ navigation

I'm using IntelliJ to do Java Development for an application where we use JSF in a few places. In the .jsp file I have defined my backing class and the code runs properly.
My question is: How do I set up my environment so that when I center click on the method names, which use EL format, IntelliJ navigates to the proper method in the proper class.
Having taken a quick look at my IntelliJ install, if you go to File->Settings, there should be a keymap section under the IDE Settings header. Make a new keymap profile other than default. You can probably just copy the default and give it a new name. In the actions window, open Main Menu->Go To and there should be an action called "Implementation(s)". The description of this action seems to match what you are looking for. Click Add Mouse Shortcut, and center click in the click pad area to set it. I didn't want to actually change my settings, so I didn't finish the steps myself, but this should do what you are wanting to do. It may warn you that you are overwriting a shortcut to another action, so be aware of that.
Hope this helps.
This is using IntelliJ Version 9 beta.
in JSP I am using something like this
<%--#elvariable id="owner" type="com.mysite.data.Owner"--%>
This is a comment specific for intellij I guess. In this way when the owner variable is used anywhere like:
${owner.name}
is known to intellij that is of a Owner type. Intellij then automatically go to the class definition by pressing CTRL+B or middle mouse button.
This is working with intellij idea 9 beta and I remember that this feature was broken in 8.1.1. Prob it is working again in 8.1.x
Probably the same approch will also work for JSF.