Xcode 11如何在Assistant Editor内打开Jump to definition?
Fix: Jump to Definition Opens in Assistant Editor in Xcode 11
I totally get this frustration—Xcode 11 changed the default behavior of Jump to Definition, and it’s been a headache for folks who relied on the old Assistant Editor workflow. Here are a few reliable ways to get that functionality back:
Quick One-Time Actions
- Use modifier keys while clicking: Hold down
Option + Shiftand click the symbol/method you want to jump to. This will immediately open its definition in the Assistant Editor, no extra setup needed. - Right-click with modifier: If you prefer using the context menu, hold
Optionwhile right-clicking the symbol. The menu option will switch from "Jump to Definition" to Jump to Definition in Assistant—select that, and it’ll open in the Assistant pane.
Set a Custom Shortcut for Permanent Workflow
If you want a dedicated shortcut to always jump to the Assistant Editor, you can set one up in Xcode’s key bindings:
- Open Xcode Preferences with
Cmd + , - Go to the Key Bindings tab
- In the search bar, type
Jump to Definition in Assistant - Double-click the "Key" field next to the command, then press your preferred shortcut combo (e.g.,
Cmd + Option + J—just make sure it doesn’t conflict with existing shortcuts) - Close Preferences, and now your new shortcut will jump directly to the definition in the Assistant Editor every time.
Note: As of Xcode 11 and later, there’s no built-in setting to change the default left-click Jump to Definition behavior to use the Assistant Editor. These workarounds are the most reliable ways to replicate the older version’s functionality.
内容的提问来源于stack exchange,提问作者Raymond
相关产品推荐
相关产品推荐

