vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Emmet not working

Open Lahori-Jawan opened this issue 10 years ago • 27 comments

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!

Lahori-Jawan avatar Dec 03 '15 10:12 Lahori-Jawan

Cannot reproduce.

  1. open an html file
  2. ul>li*5 and I get an emmet expansion.

Pls try out these steps in a VS Code setup without any extensions installed.

egamma avatar Dec 03 '15 10:12 egamma

Cannot reproduce either, works fine on Mac OS X (El Capitan).

SamVerschueren avatar Dec 03 '15 12:12 SamVerschueren

closing pls reopen with with reproducable steps.

egamma avatar Dec 03 '15 12:12 egamma

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!

Lahori-Jawan avatar Dec 04 '15 06:12 Lahori-Jawan

That's abnormal behaviour. Maybe something broke during the update process.

SamVerschueren avatar Dec 04 '15 07:12 SamVerschueren

Or the extension has some side effects. What extension did you have installed when the problem occured?

egamma avatar Dec 04 '15 07:12 egamma

just themes. flatland, monokai, batman

Lahori-Jawan avatar Dec 04 '15 13:12 Lahori-Jawan

I can reproduce this behavior. Emmet doesn't work when html file doesn't save on a hard drive.

Sapunov avatar Oct 06 '16 07:10 Sapunov

@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:

  1. VS Code version
  2. List of installed extensions

mrmlnc avatar Oct 06 '16 07:10 mrmlnc

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

skyweb331 avatar Jun 18 '17 19:06 skyweb331

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.

jens1o avatar Jun 18 '17 19:06 jens1o

@skyweb331 If you are not on Insiders, try mapping php to html using the emmet.syntaxProfiles setting

{
    "emmet.syntaxProfiles": {
        "php": "html"
     }
}

ramya-rao-a avatar Jun 19 '17 01:06 ramya-rao-a

I did it but still not working.

skyweb331 avatar Jun 19 '17 09:06 skyweb331

@skyweb331 What is your VS Code version? Please provide a sample code or gif where you see this issue

ramya-rao-a avatar Jun 19 '17 14:06 ramya-rao-a

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 avatar Jul 09 '17 22:07 Boasbabs

@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?

ramya-rao-a avatar Jul 10 '17 00:07 ramya-rao-a

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 avatar Jul 19 '17 20:07 cjwd

@cjwd Do you have emmet.useNewEmmet set to true?

ramya-rao-a avatar Jul 19 '17 20:07 ramya-rao-a

Yes I do.

cjwd avatar Jul 20 '17 21:07 cjwd

@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 Abbreviation or bind a new keybinding to the command editor.emmet.action.expandAbbreviation
  • Another thing you can try is to set emmet.showExpandedAbbreviation to "always". This will show emmet expansions in the suggestion list

ramya-rao-a avatar Jul 20 '17 22:07 ramya-rao-a