Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open references in left or bottom panel instead of in a peak view

When I left-click on class definition holding ctrl (tested in Python), then there is "peak view" shown with a list of all class usages/references in the code.

I would like to have a full view of the list like in other IDEs (like Pycharm) to browse though them easily going to full view of those files back and forth without loosing the list of references each time I go to full view.

For example by sticking the references view in a bottom panel.

Is it possible?

There is an old issue exactly about that in here: https://github.com/microsoft/vscode/issues/22261 but is resolved and it was closed when some beta proposal was added via separate extension and now I don't see anything related in Settings.

like image 520
Mesco Avatar asked Sep 07 '25 19:09

Mesco


2 Answers

I think that what you are looking for is "Find All References" as opposed to Go To References.

By default highlight and press alt+shift+F12, or use the right click context menu, or use ctrl+shift+p command palette.

This should open a panel that you can click and drag to the side bar, side menu or bottom as desired.

screenshot of panel title

like image 194
undefinitely Avatar answered Sep 09 '25 21:09

undefinitely


If you wanna change where CodeLens opens references when clicking on the "2 References" link above definitions the setting you wanna change is Preferred Location to "view" instead of "peak":

enter image description here

like image 24
Jose Browne Avatar answered Sep 09 '25 22:09

Jose Browne