Content: HTML autocompletion on MD in VS Code

Created on 23 May 2020  路  5Comments  路  Source: nuxt/content

I know it's not a question totally related to the module but I've never used HTML in MD, so I would like to know if is there a way to get autocompletion of HTML on Markdown so it's easier to use with the module?

Thanks so much for your great job!! 馃敟

question

Most helpful comment

@santicros If you didn't find anything for VSCode, Sublime Text 3's default .md editor has auto completion of html tags!

All 5 comments

Hey @santicros,

Unfortunately I don't have any clue on this, you should look into VSCode markdown extensions.

@santicros If you didn't find anything for VSCode, Sublime Text 3's default .md editor has auto completion of html tags!

Hi @santicros

This is an issue related to VS Code directly, you can look at their marketplace to find any extension or use Sublime Text 3 like @nimonian suggest :)

@santicros For future reference, Emmet supports html autocompletion in markdown in VS Code. Just change your emmet config:

"emmet.triggerExpansionOnTab": true,
"emmet.showExpandedAbbreviation": "never",
"emmet.includeLanguages": {
  "markdown": "markdown"
}

Really thanks @daltonrooney, that was the way to go!!
I had to change some things though:

  1. Delete markdown from excluded languages. Seems it's there by default
  "emmet.excludeLanguages": []
  1. Include markdown but as html, so I get suggestions too
  "emmet.includeLanguages": {
    "markdown": "html"
  },

Now you can have html in md fully!! Thanks!

Was this page helpful?
0 / 5 - 0 ratings