Ah, I see what you're asking.
In Visual Studio 2022, when you click on a symbol's references (Shift+F12 or right-click → "Find All References"), it opens a dedicated "Find References" window — a clean list of references without opening a code peek window.
In Visual Studio Code, by default, when you click "Find All References" (Shift+F12), it shows a References view in the side panel, and sometimes it also opens a Peek window (an inline editor showing the references).
You are asking:
Can I disable the Peek window and only show the references list, similar to Visual Studio 2022?
Short Answer:
✅ Yes, you can configure VS Code to open references in the side panel instead of the Peek window.
How to do it:
-
Open Settings (Ctrl+, or Cmd+, on Mac).
-
Search for:
editor.gotoLocation.multipleReferences
-
Set it to "goto" instead of "peek".
- peek (default): Opens the Peek window.
- goto: Jumps to the first result and shows the references in the side panel.
- list: Shows a list of all results to pick from.
-
Alternatively, you can add this directly to your settings.json:
"editor.gotoLocation.multipleReferences": "goto"
Bonus Tip:
If you want even more control, you can also adjust:
-
"editor.peekWidgetDefaultFocus": "tree"
(Focus the list/tree instead of the editor inside the Peek window.)
-
"references.preferredLocation": "view"
(Force references to open in the References view instead of Peek.)
Example:
{
"editor.gotoLocation.multipleReferences": "goto",
"references.preferredLocation": "view"
}
Summary:
- Set
editor.gotoLocation.multipleReferences to "goto".
- Set
references.preferredLocation to "view" if you want references to always open in the side panel.
- This will make VS Code behave more like Visual Studio 2022 when finding references.
Would you like me to also show you how to customize a keybinding so that Shift+F12 directly opens the References view without Peek? 🚀
(It's possible too!)