🚧 Site under development

Back to tips

Smart Code Navigation

Jump to definitions, files, and symbols with lightning speed

navigation
5 min read
beginner · January 10, 2024
#navigation #shortcuts #productivity #go-to

Efficient navigation is the cornerstone of productive coding. Zed’s navigation features help you move through your codebase at the speed of thought.

Quick File Navigation

The fastest way to open files is using the command palette:

Cmd + P
# Open quick file picker
# Start typing the file name and hit Enter

Go to Definition

Jump directly to where a function, class, or variable is defined:

Cmd + Click (or F12)
# Jump to definition
Cmd + K, Cmd + D
# Peek definition in a popup

Symbol Navigation

Navigate to any symbol (function, class, variable) in the current file:

Cmd + Shift + O
# Open symbol picker for current file

For workspace-wide symbol search:

Cmd + T
# Search for symbols across your entire project

Use the breadcrumb trail at the top of the editor to quickly navigate between:

  • Parent directories
  • Sibling files
  • Symbol hierarchy within the current file

Move backward and forward through your navigation history:

Ctrl + - (minus)
# Go back to previous location
Ctrl + Shift + -
# Go forward to next location

Pro Tips

  • Use Cmd + Shift + F for global find across all files
  • Cmd + G to jump to a specific line number
  • Hold Alt while clicking to peek at definitions without leaving your current location
  • Use the minimap on the right side for quick visual navigation in large files

What's next?

Continue your Zed mastery journey

Next Tip

Smart Code Navigation

Learn powerful navigation techniques to jump between files, symbols, and definitions instantly.

beginner 5 min read

Browse

All Tips

Explore the complete collection

Contribute

Share a Tip

Help grow the community

Improve

Report Issue

Found something wrong?