← Useful Tips
VS CodeVscode

Alt + F12: Peek at a definition without leaving the current file

Use Alt + F12 to peek at a definition without leaving the current file. It keeps your hands on the keyboard while navigating large codebases.

Alt + F12

Why it helps

Use Alt + F12 to peek at a definition without leaving the current file. It keeps your hands on the keyboard while navigating large codebases.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
Alt + F12: Peek at a definition without leaving the current fileAlt + F12peek at a definition without leaving the current filehow to peek at a definition without leaving the current fileVS Code peek at a definition without leaving the current file

Related tips