Emmet not working
I just updated visual studio code and as a result I see that emmet is not working now. in previous releases, emmet did work fine but since last 2 updates, emmet seems to be disabled or excluded altogehter from visual studio code. I searched for emmet extension on VS CODE repository but found nothing. my current version in 0.10.3. emmet also did not work in last release but before that all was good. I want emmet badly back!
Cannot reproduce.
- open an html file
- ul>li*5
and I get an emmet expansion.
Pls try out these steps in a VS Code setup without any extensions installed.
Cannot reproduce either, works fine on Mac OS X (El Capitan).
closing pls reopen with with reproducable steps.
well, removing the extensions did the trick but now I wonder if i update next time, then again I would have to remove all the extensions and then re-install them one-by-one which is very time consuming, right! BTW thanks for help!
That's abnormal behaviour. Maybe something broke during the update process.
Or the extension has some side effects. What extension did you have installed when the problem occured?
just themes. flatland, monokai, batman
I can reproduce this behavior. Emmet doesn't work when html file doesn't save on a hard drive.
@Sapunov,
I cannot reproduce this problem in VS Code 1.5.3 on Windows 10. Please, provide GIF or a small code example where occurs described problem. Also, please, give me more detailed information:
- VS Code version
- List of installed extensions
it is only working in html extension files. I tried it in *.php file but not working. I just changed file extension and now working fine
I tried it in *.php file but not working. I just changed file extension and now working fine
This will be fixed in next release, since @ramya-rao-a is working on it. :) There is another issue where this gets explained.
@skyweb331 If you are not on Insiders, try mapping php to html using the emmet.syntaxProfiles setting
{
"emmet.syntaxProfiles": {
"php": "html"
}
}
I did it but still not working.
@skyweb331 What is your VS Code version? Please provide a sample code or gif where you see this issue
Hi there, I am still having issues using emmet on VScode. Tab doesn't expand shortcuts. From what i read so far, i have to remove all my extensions plugin. But that does not sound logical to me. VSCode is robust. I want to use VScode but if issues like this aren't solved, i will stick with my old editor.
- current version: Version 1.13.0
@Boasbabs
I want to use VScode but if issues like this aren't solved, i will stick with my old editor.
We can only solve issues that we can understand. So please help us in that by answering the below questions.
- Is emmet working as expected when you run the command
Emmet: Expand Abbreviation? - Just before you press tab, is there any auto-complete/suggestion list open?
- In which kind of file is emmet not working for you? Eg: html, php, jsx, css, scss ?
- You don't need to remove all your extensions. Can you point to the place where you read that?
I'm having the same issue, emmet is not expanding with tab in php files. To answer your above.
- Yes it works if I use the command palette
- There is no auto complete/ suggestion list open
- PHP
Version 1.14.1 (1.14.1)
I have tried the { "emmet.syntaxProfiles": { "php": "html" } }
@cjwd Do you have emmet.useNewEmmet set to true?
Yes I do.
@cjwd Please read https://code.visualstudio.com/updates/v1_13#_emmet-abbreviation-expansion-in-suggestion-list and https://code.visualstudio.com/updates/v1_14#_emmet-abbreviation-improvements
- tab is not longer the default keybinding for emmet. Use the command
Emmet: Expand Abbreviationor bind a new keybinding to the commandeditor.emmet.action.expandAbbreviation - Another thing you can try is to set
emmet.showExpandedAbbreviationto "always". This will show emmet expansions in the suggestion list