Search and navigation
Open Quickly
Section titled “Open Quickly”⌘P (or Find a file… in the toolbar) fuzzy-matches every file in the project. Type a few letters from anywhere in the path.
The command palette
Section titled “The command palette”Type > in the same box and it lists every menu command instead. If you remember roughly what a command is called but not its key, this is the fastest way to it.
Two more prefixes in the same box:
| Type | Lists |
|---|---|
| @ | What the current file defines, in order, so it doubles as an outline. |
| # | Definitions across the whole project, from the project index. |
Find in project
Section titled “Find in project”⌘⇧F searches the whole project in the background, so typing never waits on it.
With project search open, Edit › Replace All replaces every match across the project’s files.
Symbols
Section titled “Symbols”Go to symbol in the file⌘R
Go to symbol in the project⌘T
Go to line⌘L
Code navigation
Section titled “Code navigation”These come from the language server for the file, when one is installed.
Go to definitionF12 or ⌘-click
Hover informationF1
Rename symbolF2
Go › Find References lists every use of the symbol at the caret.
From the terminal
Section titled “From the terminal”⌘-click a path such as src/main.rs:42:7 in
terminal output to open it at that line and column.