/vscode-svg

A vscode svg langauge support extension

Primary LanguageTypeScriptMIT LicenseMIT

svg

A Powerful SVG Langauge Support Extension(beta).

Features

SVG Elements Auto Completion.

feature 1

SVG Attributes Auto Completion.

feature 2

Document Symbol with SVG Element [id].

feature 3

SVG Preview

feature 4

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) Hit F2(Windows) Key, Rename it!

In Id Reference Click Goto id="" element.

Hot Ctrl Key and Move mouse to a url(#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.

Minify SVG with SVGO

Open the Command Palette (⇧⌘P on Mac and Ctrl+Shift+P on Win/Linux) and run Minify SVG. This will reduce the filesize significantly by removing all unnecessary code from the image.

Contributors

Known Issues

SVG Version 2.0 is not included.

Update History

0.1.1

  • Fix The contents of the document are emptied when the format fails.

0.1.0

  • Add Pretty SVG command.
  • Add Experimental Setting svg.disableFormatOnSave.

0.0.9

  • Add Minify SVG command.

0.0.8

  • Change Format SVGO Options.

0.0.7

  • Fix some debug time warning.
  • Change Preview use 'Transparent' background.

0.0.6

  • Add Formatting support using SVGO.

0.0.5

  • Add url(#id) Definition Provider.

0.0.4

  • Add New Rename Provider.

0.0.3

  • New Hover Info Support.
  • Improve Completion list in paint show color keywords.
  • Improve Completion list work like snipple (For base sharp). Required vscode >=1.8 .
  • The svg.completion.showDeprecated Configuration item is actived, will not show deprecated item in completion list by default(false).

0.0.2

  • Improve Preview.
  • Improve Id Symbol show [tag]#[id] and fix a bug.

0.0.1

  • Initial release.

For more information

Enjoy!