Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use ctrl-click on vscode to go to implementation instead of peek definition [duplicate]

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.

like image 205
opensas Avatar asked Sep 12 '25 03:09

opensas


1 Answers

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.

enter image description here

like image 129
Marc Avatar answered Sep 14 '25 22:09

Marc