fork from https://github.com/lishu/vscode-svg
A Powerful SVG Language Support Extension for coc.nvim. Almost all the features you need to handle SVG.
CocInstall coc-svg
- SVG Elements Auto Completion.
- SVG Attributes Auto Completion.
- Document Symbol with SVG Element [id].
- SVG Preview
Tip: All Completion list is context, will not show all items.
- Rename Tag Name or Id Reference.
Cursor in Tag Name or Id Attribute or
url(#id)
orhref="#id"
- In Id Reference Click Goto
id=""
element.Move cursor to a
url(#id)
orhref="#id"
, That it! - SVG Format Support
Formatting support using SVGO, which can prettify SVGs and sort tag attributes. SVGO works as a group of plugins that can be activated or desactivated (which is default for most in this extension). Information on the plugins can be found here.
svg.prettySvg
pretty svg.svg.minifySvg
This will reduce the filesize by removing all unnecessary code from the image.svg.showSvg
open browser to preview current svg.
SVG Version 2.0 is not included.