henoc / svgeditor

VSCode extension for svg editor 🤗
MIT License
88 stars 7 forks source link
svg svg-editor vscode

SVG Editor

marketplace license donate/ofuse

sample

ver 2.9: Correct only the changed portions without auto formatting

Now your VSCode can mutate to an interactive visual & literal SVG editor 😎

You can create shapes using the SVG's coder or directly creating shapes with the shaping tool.

Commands

command title
svgeditor.openSvgEditor Open SVG Editor
svgeditor.newSvgEditor New File with SVG Editor
svgeditor.reopenRelatedTextEditor Reopen Text Editor Related to Current SVG Editor

Configuration

name description default
svgeditor.filenameExtension Initial filename extension of new untitled file. svg
svgeditor.width Initial width of new untitled file. 400px
svgeditor.height Initial height of new untitled file. 400px
svgeditor.defaultUnit Specifies the unit when creating some shapes. null
svgeditor.decimalPlaces The number of decimal places. 1
svgeditor.collectTransformMatrix Collect two or more transform functions into a matrix. true
svgeditor.additionalResourcePaths Additional resource directory paths SVG Editor can access.
svgeditor.useStyleAttribute Use style attribute instead of presentation attriubte when there are no previous specifications. false
svgeditor.indentStyle Indent style for auto-formatting. space
svgeditor.indentSize Indent size of spaces for auto-formatting. 4

Keybindings

operation key
delete backspace / delete
duplicate ctrl+d
zoom in oem_plus
zoom out oem_minus
group ctrl+g
ungroup ctrl+u
font f8
bring forward pageup
send backward pagedown
align left ctrl+alt+numpad4
align right ctrl+alt+numpad6
align bottom ctrl+alt+numpad2
align top ctrl+alt+numpad8
object to path shift+ctrl+c
rotate clockwise ctrl+]
rotate counterclockwise ctrl+[
rotate clockwise by the angle step ]
rotate counterclockwise by the angle step [
center vertical ctrl+alt+h
center horizontal ctrl+alt+t

Current support tags and attributes

🎨(presentation attributes): fill, fill-rule, stroke, stroke-width, stroke-linecap, stroke-linejoin, stroke-dasharray, stroke-dashoffset, transform, font-family, font-size, font-style, font-weight

Notice

Image

Localtion (xlink:)href refers to is restricted with your workspace, extension and svgeditor.additionalResourcePaths directories due to vscode-resource scheme settings.

Future plans

License

MIT