DEV Community

Cover image for Emmet not working in VS Code ?— Here’s how you can fix this problem!!

Emmet not working in VS Code ?— Here’s how you can fix this problem!!

Pranav Arora on October 20, 2021

Emmet is a powerful extension in Visual Studio Code. If you are developing a website or working with any language such as HTML, Emmet helps you to ...
Collapse
 
itsmsd profile image
Madhusudannn03 •

still not working
please anyone help .
Image description

Collapse
 
pranavarora1895 profile image
Pranav Arora • • Edited
  1. As you can see " " (the quotes) that you have copied are different from the others in settings.json. So you remove the copied quotes and type them again.

  2. Place a , (comma) at the end on line 19. This will separate line 19 from line 20.

Hope that helps!! 😀

Collapse
 
itsmsd profile image
Madhusudannn03 •

Can u explain me 1 point 🙄🙄
main 5 dino se kosis kr rha lekin nhi ho rhaa mere se utube bhi dekha vha bhi sb yhi bol rhe ki
“emmet.triggerExpansionOnTab”: true,
“files.associations”: {“*html”: “html”},
isko copy kar le ho jayega but jab main kar rha to red ho jaa rha

Thread Thread
 
pranavarora1895 profile image
Pranav Arora •

Dhyan se dekho jo tumne copy kia hai uske quotes different hain. Tum sirf ek kaam kro, jo tumne copy kia hai uske quotes ko delete kro aur apne se firse lga lo.

Thread Thread
 
itsmsd profile image
Madhusudannn03 •

bhaiya kaha glt hai mujhe to dikh hi nhi rhaa jo red me show ho rha oo maine shi likha hua hai aap kiska baat kar rhe ho

Thread Thread
 
pranavarora1895 profile image
Pranav Arora •

Quotes (" ") bdlo bas, baki sab sahi hai.

Collapse
 
graciamaria92 profile image
graciamaria92 •

still not working. please, I really need help

Image description

Collapse
 
pranavarora1895 profile image
Pranav Arora •

Hi,

put a comma , at the end of line 8

change the quotes to "". If you see the the quotes on line 9 & 10 are different from the rest in the file. Kindly do that and let me know if that works.

Collapse
 
graciamaria92 profile image
graciamaria92 •

thanks pranav, but sadly still not working

{
"editor.formatOnSave": true,
"workbench.colorTheme": "Default Dark+",
"emmet.useInlineCompletions": true,
"emmet.showSuggestionsAsSnippets": true,
"emmet.triggerExpansionOnTab": true,
"window.zoomLevel": 1,
"html.format.contentUnformatted": "",
"emmet.triggerExpansionOnTab": true,
"files.associations": {"*html": "html"},
"emmet.useInlineCompletions": true,
"emmet.useInlineCompletions": true,
}

Thread Thread
 
pranavarora1895 profile image
Pranav Arora •

In line 10, replace the following snippet:

"files.associations": {
"index.html": "html",
"*.css": "css",
"App.js": "javascriptreact",
"*.py": "python"
}

Thread Thread
 
graciamaria92 profile image
graciamaria92 •

not working :(

{
"editor.formatOnSave": true,
"workbench.colorTheme": "Default Dark+",
"emmet.useInlineCompletions": true,
"emmet.showSuggestionsAsSnippets": true,
"emmet.triggerExpansionOnTab": true,
"window.zoomLevel": 1,
"html.format.contentUnformatted": "",
"emmet.triggerExpansionOnTab": true,
"files.associations": {
"index.html": "html",
".css": "css",
"App.js": "javascriptreact",
"
.py": "python"
}
}

Thread Thread
 
graciamaria92 profile image
graciamaria92 •

Image description

Collapse
 
iancover profile image
Ian Cover •

Just remember to add the dot on the file extensions, since the setting files.associations is associating files by their extension (e.g., ONE file my-file.html or ALL files *.html) to their language identifier, e.g. html and because its a JSON file, must be wrapped in double quotes, for example:

"files.associations": {
    "index.html": "html",
    "*.css": "css",
    "App.js": "javascriptreact",
    "*.py": "python"
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
edichirca profile image
Edi Chirca • • Edited

Ive tried it, still not working, maybe Im doing something wrong:
Image description
Image description

Collapse
 
ilonadev profile image
iLonaDev •

Try to add one more line to the snippet:
"emmet.useInlineCompletions": true

Collapse
 
edichirca profile image
Edi Chirca • • Edited

Just added it, finally its working thanks iLonaDev .

Collapse
 
nicorafales profile image
Nicolás Rafales • • Edited

I don't usually use much of this (or any particular) platform. Just wanted to give you some good Karma mate. I appreciate this. Straight to the point when I needed solutions, not distractions.
Had to change the quotes to straight ones, but anyone can realise that if paying attention
😉

Cheers mate.

Collapse
 
pranavarora1895 profile image
Pranav Arora •

Thank you so much mate. Glad that I could help :-)

Collapse
 
uvlabs profile image
Uriahs Victor •

You can also turn on this setting via VS settings without editing the .json file

Collapse
 
paubel profile image
Paul B • • Edited

And here is where you do that: dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
pranavarora1895 profile image
Pranav Arora •

Yup great!!

Collapse
 
pranavarora1895 profile image
Pranav Arora •

True!! Thanks for telling. 😀

Collapse
 
v1dhn profile image
Vidhan Pandey •

Created an account just to say that Pranav you are awesome! You did not ignore anyone in need :)

Collapse
 
pranavarora1895 profile image
Pranav Arora • • Edited

Thank you so much for your kind words. It motivates me to share more of my findings on this platform. :-)

Collapse
 
spyrosko profile image
spyrosko •

Thank you, Pranav! My problem was fixing the quotation marks to the rest that were already in my settings.json file.

Collapse
 
astowny profile image
Astowny •

Amazing, thanks ! It worked for me.

Collapse
 
mariullom profile image
Mari Ullom •

You are a lifesaver!

Collapse
 
pranavarora1895 profile image
Pranav Arora •

Oh thank you, Mari!! 😀

Collapse
 
ngl4 profile image
Cindy Lam •

Thank you Pranav! This fixed the Emmet extension issue using your approach!

Collapse
 
pranavarora1895 profile image
Pranav Arora • • Edited

You're most welcome, Cindy!! 😊

Collapse
 
victorsgb profile image
victorsgb •

Thank you so much!!

Collapse
 
pranavarora1895 profile image
Pranav Arora •

You're Welcome!!

Collapse
 
hpinedoh profile image
hpinedoh •

Great! thanks...

Collapse
 
alonedatascientist profile image
alonedatascientist •

Fix still works as of 7 / 11/ 2022. Thank you sir!

Collapse
 
utkarshkalra profile image
utkarsh •

It actually helped thanks man

Collapse
 
laplace125 profile image
Akano Olayinka Afeez •

Thanks, it worked

Collapse
 
freddyteddy profile image
freddyteddy •

Thanks Pranav

Collapse
 
ramprakashram profile image
Ram •

Thanks. It worked flawlessly.

Collapse
 
pranavarora1895 profile image
Pranav Arora •

You're Welcome Ram!! 😀

Collapse
 
euhansarkar profile image
Euhan Sarkar •

Thank You Arora! it's working.

Collapse
 
bonaogeto profile image
Bonaventure Ogeto •

Helpful!

Collapse
 
candentmind profile image
CandentMind •

This was very helpful and it worked, thanks a lot

Collapse
 
tdrobison profile image
tdrobison •

Bravo! Fixed my issue.

Collapse
 
pranavarora1895 profile image
Pranav Arora •

That's great!! 😀

Collapse
 
onwuemene profile image
Joshua •

Thank you so much bro, it worked.

Collapse
 
kendrickdk profile image
KENDRICK KEETON •

Fixed it. Nice. I wonder why vscode doesn't have these setting by default?

Collapse
 
pranavarora1895 profile image
Pranav Arora •

Thank you so much to all for appreciating my post. It was my first-ever post, and I am so glad that I was able to help a lot of developers. It means a lot to me and motivates me to share my findings and bug fixes with the community. 😀

Collapse
 
abdulmunimfiras profile image
AbdulmunimFiras •

I have a question, when i type in

it auto closes it but doesnt complete same with it doesnt complete , its really annoying having to write it everytime what should i do??
Collapse
 
md_mahim_4685909aec6b5cd1 profile image
Md Mahim •

Image description****

why its not working
plz help
i cant learn for this prblm

Collapse
 
itsmsd profile image
Madhusudannn03 •

bro if ur done then help me

Collapse
 
sumit_tiwari_16585172697f profile image
Sumit Tiwari •

In my VScode the emmet option is not showing in the setting. Even if i searched it still it did not show anything.

Collapse
 
sumit_tiwari_16585172697f profile image
Sumit Tiwari •

Image description

Collapse
 
kim_leng_4889cd5b9d2961bd profile image
Kim Leng •

Help please
Uploading image

Collapse
 
nayan_6a4b53d58a04802a146 profile image
Nayan •

very helpful sir appretiated

Collapse
 
tuf__ profile image
Aziz-denden •

Image description
emmet not working i need some help

Collapse
 
shahzadndch profile image
shahzadndch •

Uploading image
Emmet not working
When i type ! In me file it should show options but it is not

Collapse
 
govind1326 profile image
Govind1326 •

hi

Collapse
 
shahzadndch profile image
shahzadndch •

Why not working ?
Uploading image