Does anyone know where I can get HTML Snippets to use in JavaScript?
Example:
input: h1 + tab
output: <h1></h1>
Does anyone know where I can get HTML Snippets to use in JavaScript?
Example:
input: h1 + tab
output: <h1></h1>
You first need to download the plugin that makes the snippets
HTML available, Examples for download here .
Then you need to set VS Code
and / or snippet
to work in other extensions as well.
To configure ( tutorial for configuration ):
Go to the extensions
directory, usually located at:
Windows %USERPROFILE%\.vscode\extensions
Mac ~/.vscode/extensions
Linux ~/.vscode/extensions
Find the directory of the extension you want, eg abusaidm.html-snippets-x.x.x
, where x.x.x is the version.
Open the file package.json
within it.
Add the section below within the snippets
section, configuring the extension / language you want.
,{
"language": "NOVA LINGUAGEM / EXTENSÃO",
"path": "./snippets/snippets.json"
}