Favorite new Keyboard Shortcut in Visual Studio Code

1 min read

I did not know that CTRL/CMD + P which is “Goto File” also doubles as a quick symbol jump within the current file. If you have a few functions in a TypeScript file for example (it works in many types of files), like:

typescript
function leapYear2024() {}
function feb292024() {}
function getCurrentYear() {}

After you activate the quick goto file feature, type @ and start to type the function you want to jump to … and all the matching functions appear! You can then use the up/down arrows as needed to jump to the function.