use ctrl-click on vscode to go to implementation instead of peak definition

Viewed 720

I'm using vscode 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 defintion 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 goto implementation)

btw, I think my goto definition is not working so well, as it's just doing the same as peek.

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

Related