Daily Archives

One Article

Visual Studio Tips

Quick Goto Definition F12 alternative in VSCode

Posted by matteskolin on

These shortcuts require the vim extension is enabled

On my laptop keyboard, stretching my fingers up to the f12 key is a pain. These keys are smaller than the rest of the keys, and are confusing in that in additional to application commands, they also control monitor brightness, sound volume, etc.

In VS Code

gd will also “Go To Definition” just like F12.

Control + O can bring you back to where you were before jumping to definition. This to me is an easier key combination than the VSCode back and forward navigation via Alt + Left Arrow/Right Arrow