21

I have included the following in my vs-code user settings:

"emmet.includeLanguages": {
  "vue-html": "html",
  "markdown": "html"
},
"emmet.triggerExpansionOnTab": true,

And would have expected to see emmet working for markdown files as an outcome but I get no suggestions and even if I explicitly press ⌃Space it just comes up with "No Suggestions".

What else is needed to get emmet in Markdown files?

ken
  • 8,763
  • 11
  • 72
  • 133
  • +1 for this, I could have sworn it was working previously and I'm not sure why just yet. Was hoping others with this issue had solved it. – DerekR May 29 '18 at 14:17

4 Answers4

41

Okay, I got it working again. It looks like this is the default now in your user settings.

"emmet.excludeLanguages": [
    "markdown"
]

So it will trump the includeLanguages you've defined. Adding the following to my settings caused it to start working again.

"emmet.excludeLanguages": [],
"emmet.includeLanguages": {"markdown": "html"},
equiman
  • 7,810
  • 2
  • 45
  • 47
DerekR
  • 3,886
  • 2
  • 23
  • 24
5

Go to your user settings (Ctrl+Shift+P and enter "user settings"). Enter "emmet" there and click on "edit settings.json". Modify / add those lines:

"emmet.excludeLanguages": [],
"emmet.includeLanguages": {"markdown": "html"},
"emmet.triggerExpansionOnTab": true,
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
3

Adding these in user settings to show suggestions for the new version (1.43.0) of VSCode

"[markdown]": {
    "editor.quickSuggestions": true
}
SanZhun
  • 31
  • 1
1

DerekR's answer is correct, but apparently there is a little more needed to get this working. Add these two lines to settings.json, per this CSS Tricks article:

"emmet.triggerExpansionOnTab": true
"emmet.showExpandedAbbreviation": "never"

That got emmet working great in my Markdown files. Of course, there is the caveat of never showing an expanded abbreviation.