Is there a way to disable the ctrl-click 'peek' feature in Visual Studio Code? Ideally I'd like ctrl-click to just open the file containing the definition in a new tab.
Edit: I submitted an issue to at least make it less confusing. Apparently my terminology is slightly wrong.
To clarify, there are two actions:
- Right-click -> Peek Definition
- Right-click -> Go to Definition (bound to ctrl-click)
Their behaviour is as follows:
- PD, Single Definition
- Opens inline interface showing definition.
PD, Multiple Definitions
- Opens inline interface showing definitions.
GtD, Single Definition
- Open the file containing the definition.
- GtD, Multiple Definitions
- Pick one of the definitions at random, open that file, and an inline interface showing all the definitions.
All of those are fine except the last. Doing both things results in a really redundant and confusing UI like this:
There should be a way to have one of these behaviours:
- Pick one of the definitions at random, open that file.
Or:
- Open inline interface showing all the definitions (in the current file)

0 comments:
Post a Comment