API help shortcut in Visual Studio?

Hello fellow developers,

I have been trying to figure out how can I access the unity script documentation using a shortcut in Visual Studio.
So I found this answer :API help in Visual Studio? - Questions & Answers - Unity Discussions

But neither does (Ctrl+Alt+M, Ctrl+H) work or finding Help.UnityAPIReference(could not find it in Visual Studio Debug and Settings)

I am using Visual Studio 2013 and using “SyncMonoDev” to work on it

Thanks,
Avichal

1 Like

VS 2013 has a slightly different location:

Tools → Options → Environment → Keyboard

Under -->.Show Commands Containing
Type → Help

Wait to see what comes up…

Do you see Help.UnityAPIReference in the list?

Click on it, then map the key to whatever you want below.

Exit the Options, press the mapped key, and look in your solution explorer tab. It should be there

7 Likes

I cannot see it there !

In Unity, go to Edit → Preferences → External Tools. Did you link VS into unity?

Hey I had not linked VS into Unity.

I did it but I still don’t see Help.UnityAPIReference

Make sure it is fully linked. Write some code in VS, save it, then check the script in Unity. Just to make sure everything is syncing correctly.

yes man, it syncs my code as soon as I save it. I had used Sync monodevelop, maybe I should first link VS and then use Sync monodevelop

Not sure if this is too late to help, but I had this issue as well. It took me a bit to figure it out. When the shortcut says Ctrl+Alt+M, Ctrl+H it means that first you press Ctrl+Alt+M this will change a blue bar at the bottom Visual Studios to read “(Ctrl+Alt+M) was pressed. Waiting for second key of chord…” this is when you then press Ctrl+H. They’re not commands that will work by themselves, though Ctrl+H brings up the replace window.

So, if you are familiar with other VS key shortcuts, it’s like the mass comment key shortcut Ctrl+K to start it then Ctrl+C to comment the highlighted code or Ctrl+U to uncomment it. Hope this helps!

4 Likes

I am having this issue as well. I have a clean install of Unity 5.2 with Visual Studio. Ctrl+’ doesn’t work (it’s not supposed to) and Ctrl+Alt+M, Ctrl+H also doesn’t work. VS tells me the command doesn’t exist. I also cannot find Help.UnityAPIReference and I have VS linked with Unity.

1 Like

i also have the same issue, any help guys ???

I have fixed this problem by reinstalling Visual Studio and all its components. After that is done, I got the “VS-Tools for Unity” from here: Game Development and Debugging | Visual Studio
After installing the .msi file, it worked for me.
Maybe a reinstallation isn’t even necessary, I haven’t tried simply installing die File.

1 Like

Hey guys, anybody knows if in VS Code are a Help.UnityApiReference shortcut? Im searching for all the web buy nothing happend…

This fixed it for me, too. Thanks CreatOverflBrimstone!

Thank you for your help

1 Like

http://forum.unity3d.com/threads/getting-ctrl-to-work-within-vs.372584/

1 Like

I had the same problem, and then I clicked the button ‘‘Attach to Unity’’ in Visual Studio (see image) and the combination Crt+Alt+M, Crt+H now works just fine. Hope this helps.

2808873--204092--upload_2016-10-3_3-27-32.png

Go to attached.png screen then change Shortcuts for selected command as Ctrl + H.
it was not like that before for me after i change fixed.

1 Like

I’m having the same problem and trying to fix it by going to Options → Keyboard → Help.UnityAPIReference. Unity Tools is installed; Debug.AttachUnityDebugger and View.UnityProjectExplorer are listed under show commands containing. However, Help.UnityAPIReference is not listed and shortcuts do not work. Any ideas?

Unity 2017.1 and VS 2017

1 Like

I have the same problem! I can ‘attach’ VS to unity and that works but:

Help.UnityAPIReference is not in environment → keyboard
ctrl + alt + m, ctrl +h says “Bound to Unity API which is unavailable”

God this is an annoying problem. Any luck fixing it?

It’s a bug in Visual Studio 2017.
I have the same issue here - the "short"cut Ctrl+Alt+M, Ctrl+H does work for me, but there’s no way to change its binding.
After searching I came upon this thread in the Microsoft Developer community, where it states:

It’s now fixed and pending release.

2 Likes