Reputation: 63425
I'm using VS Code with a .svelte file.
When I ctrl-click it shows me the definition in a panel below the line.
Same think happens if I right click and choose go to definition
or peek -> peek definition
, which is a bit odd.
I'd like ctrl-click to open a new tab with the definition (that is what happens if I right click and select go to implementation)
btw, I think my go to definition
is not working so well, as it's just doing the same as peek.
Upvotes: 19
Views: 37061
Reputation: 11
You may also consider downloading PHP intelephense, a vscode extension for PHP.
Upvotes: 1
Reputation: 19
You may consider also adding the corresponding language extension according to the programming language you are using, I added the language extension and it got solved.
Upvotes: 1
Reputation: 31
To avoid peek panel below the code when ctrl + click is pressed, change this setting in vscode user settings. File -> Preferences -> Settings -> User: definitionLinkOpensInPeek Uncheck the check box.
Upvotes: 3
Reputation: 14295
There seems to be a new setting editor.gotoLocation.multipleDefinitions
which, if set to peek
(as is the default) will open a peek even if the definition is unique. This may be a bug but setting it to goto
solves it for me.
Upvotes: 33