When I press F12 (Go To Definition) in Visual Studio 2015 I get this error message:
One or more errors occured
I already tried:
This hack is no longer useful now that the Visual Studio bug is fixed. I'm leaving it here in case it's useful a sample for hacking around similar issues that come up.
AutoHotKey to the rescue! Fighting tirelessly against the evils of bad keyboard UX.
Here's how to set up a script that binds Ctrl+F12 to a key sequence that sets space indents, goes to the definition, and then restores tab indents. Use it instead of F12 to go to definitions outside your codebase:
FixF12.ahk
. Paste into it the script below.shell:startup
into the Windows Explorer location bar.FixF12.ahk
into Startup
and create a shortcut.Script for FixF12.ahk
:
#NoEnv
SendMode Input
^F12::
WinGetActiveTitle Title
IfInString Title, Microsoft Visual Studio
{
Send, ^QC{#} tabs{Enter}
Sleep, 300
Send, !p
Sleep, 300
Send, {Enter}
Send, {F12}
Send, !tO
Sleep, 300
Send, !k
Sleep, 300
Send, {Enter}
}
else
{
Send, {^F12}
}
The script is a hack, complete with flashing dialog boxes and a race condition, but it does the job. Don't forget to upvote the bug report in Connect. Hopefully Microsoft will release a fix before Update 1.