vscode-svg
vscode-svg copied to clipboard
Auto-completion in html files
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.
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
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.)
Would love this feature. All my work is inline..