user6818880
user6818880

Reputation:

What is this particular type of shortcut for javascript in vscode called? (see image) And/Or more importantly: Where to see a full list?

I would like to have a list of these shortcuts, that are only a few characters long, but I don't know what they are called or where they come from.

Screenshot of ifelse-shortcut in vscode

Upvotes: 2

Views: 44

Answers (1)

CertainPerformance
CertainPerformance

Reputation: 370689

These are called code snippets. You can see a list of all of the built-in JS ones if you navigate to

C:\Program Files\Microsoft VS Code\resources\app\extensions\javascript\snippets\javascript.json

or to a similar path.

You can also write your own snippets, which may be located at a path similar to

C:\Users\USERNAME\AppData\Roaming\Code\User\snippets\javascript.json

Upvotes: 2

Related Questions