vscode-svg icon indicating copy to clipboard operation
vscode-svg copied to clipboard

Auto-completion in html files

Open sergxp opened this issue 6 years ago • 3 comments

Does this work with HTML files, if not that would be a great feature, I rarely work directly with SVG, but I modify SVG inline in HTML files every day.

sergxp avatar Mar 28 '18 18:03 sergxp

You can do that by adding:

"files.associations": {
      "*.html": "svg"
}

to your config file but it is not a viable solution considering that you loose the html default support after that

I could not find a way to define two language associations for a single file extension

thiagobapti avatar Jul 18 '18 02:07 thiagobapti

Edit: it looks like I was mis-understanding what this extension is able to do. Sorry for the distraction.

It's definitely possible to add in support for extra languages inside other file types, because there are extensions that do this for CSS and JS in HTML. Here's a CSS-in-HTML extension that's linked from the Visual Code help docs: https://github.com/ecmel/vscode-html-css

It looks like it runs in HTML files & listens for events creating style elements, then creates temporary documents from the text content and affiliates them with the native CSS language service. (But I really don't know how complicated that would be to integrate with your code.)

AmeliaBR avatar Aug 16 '18 02:08 AmeliaBR

Would love this feature. All my work is inline..

adrez avatar Nov 10 '18 21:11 adrez