phoenixframework / vscode-phoenix

Syntax highlighting support for Phoenix templates in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=phoenixframework.phoenix
MIT License
160 stars 10 forks source link

Emmet Support Instructions #8

Closed karamfd closed 2 years ago

karamfd commented 2 years ago

To use emmet auto-completion in this extension, add the options below in your settings:

"emmet.includeLanguages": { "phoenix-heex": "html" },

I'll make a Pull Request with these instructions, if that's alright with you 🙂

karamfd commented 2 years ago

I made a pull request to address this issue and it's been merged.

miXwui commented 2 years ago

Just an update to this issue, I had to also add this line:

"emmet.includeLanguages": {
...
  "elixir": "html"
},

to get Emmet abbreviations to work inside ~H sigils.

Created pull request https://github.com/phoenixframework/vscode-phoenix/pull/11 to update the readme :slightly_smiling_face:

EDIT: Actually, not sure if this belongs here/in this repo since it's ~H sigils are in Elixir .ex files :man_shrugging: