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

msdr :

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

CertainPerformance :

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=302127&siteId=1