-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emmet user snippets.json #213455
Comments
I notice that you have a few other completion extensions installed. Could you try creating a new empty profile and seeing whether the custom snippets work after reconfiguring the Emmet settings? |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Hi, I followed this article : https://www.smashingmagazine.com/2021/06/custom-emmet-snippets-vscode/ and create an snippets file in {
"emmet.triggerExpansionOnTab": true,
"emmet.extensionsPath": [
"C:\\Users\\***\\AppData\\Roaming\\Code\\User\\emmet\\snippets.json"
],
} My snippets.json file: {
"html": {
"snippets": {
"img:l": "img[width height loading='lazy']"
}
}
} In a new HTML file img:l is not listed in the autocompletion. |
Shame on me. The file path was wrong because I included the file name in the path. For those reading this, I've seen a video on YouTube where the guy used Just set the emmet.extensionsPath field in your settings like this (assuming you've created the emmet folder at this location):: |
Type: Bug
Hi,
I've spent several hours trying various solutions, but Emmet still doesn't suggest my custom snippets (HTML or CSS), even when I use the examples from the documentation. I added some preferences in my settings.json file, which work, but VSCode seems unable to find my snippets.json file located at the root of a data drive: "D:\snippets.json" or "D:\\snippets.json".
VS Code version: Code 1.89.1 (dc96b83, 2024-05-07T05:13:33.891Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (32)
A/B Experiments
The text was updated successfully, but these errors were encountered: