VS Code and IDE features that make reading code faster
Go to definition, find references, call hierarchy, peek, outline, breadcrumbs, workspace symbol search and more: the editor features that matter most for understanding code.
Most developers use a small fraction of their editor's navigation features. For reading unfamiliar code, the right shortcuts save hours. Examples below use VS Code's default bindings on Windows and Linux (Cmd instead of Ctrl on macOS); JetBrains IDEs have equivalents, usually with even deeper analysis.
Go to definition and peek
- Go to Definition (F12) jumps to where a symbol is defined.
- Peek Definition (Alt+F12) shows it inline without losing your place, which is better when you're tracing a path and don't want to lose context.
- Go to Type Definition finds the type, which is useful when a variable's type explains its shape.
Find all references
Find All References (Shift+F12, or Shift+Alt+F12 for the panel) lists every use of a function, class or variable. It's the most important tool for impact analysis: before changing a function, see who calls it.
Call hierarchy
Show Call Hierarchy (Shift+Alt+H) shows callers of a function as a tree you can expand upward, level by level. It answers "how can execution reach here?" better than repeated searches.
Workspace symbol search
Go to Symbol in Workspace (Ctrl+T) finds any function, class or type by name across the project, faster and more precisely than text search.
Outline and breadcrumbs
The Outline view lists the symbols in the current file, a quick summary of a long module. Breadcrumbs at the top of the editor show where you are (file, class, method) and let you jump to siblings.
Search with intent
The search panel (Ctrl+Shift+F) supports regular expressions, case-sensitive and whole-word matching, and include and exclude globs. Excluding **/*.test.ts and **/dist/** makes results much more useful.
Navigation history
Go Back (Alt+Left) and Go Forward (Alt+Right) move through your navigation history. When you've followed five definitions deep, Go Back returns you along the same path.
Debugger as a reading tool
Set a breakpoint, trigger the behaviour, and look at the Call Stack and Variables panels. The call stack is the real execution path, not your guess at it. Logpoints let you log without editing code.
GitHub without cloning
On any GitHub repository page, press . to open github.dev, which is VS Code in the browser. Navigation is more limited than locally, but search, the file tree and multiple tabs make reading much easier than on the plain GitHub UI.
JetBrains extras
IntelliJ IDEA and WebStorm add data-flow analysis ("analyze data flow to here"), structural search, dependency diagrams and very accurate "find usages" across complex code.
Where AI fits
Editor tools are exact but local: one symbol, one level at a time. AI explanations are broad but need checking. A productive loop is to ask a tool like RepoGrasp for the overall path ("how does a webhook update a subscription?"), then use go-to-definition and find-references in your editor to confirm the links that matter.
Try RepoGrasp alongside your editor.