Lukas
Lukas

Reputation: 125

How to jump from function name to function params in VS Code - Keyboard Shortcut

I have maybe a stupid question but how can I jump from function name to function params in VS Code. I want a keyboard shortcut. When I write a fc and I press a tab I will get this:

function name(params) {
}

and I can rewrite name instantly. How can I jump to the params and have selected the whole word for rewriting?

Thanks

Upvotes: 1

Views: 858

Answers (1)

Klas Mellbourn
Klas Mellbourn

Reputation: 44377

It seems you are using a snippet that creates a function. After you have typed the name, you should then press the TAB key, this will let you edit the parameter.

In this animated gif, after I write the function name "qux", I press the tab key, and then type the parameter name "bar":

showing how to tab between name and tab

Upvotes: 2

Related Questions