Skip to content

1000ch/vscode-svgo

Repository files navigation

vscode-svgo test

Fully featured SVGO plugin for Visual Studio Code.

Install

Execute Extensions: Install Extensions command from Command Palette (Cmd Shift P) and search by svgo.

Also you can install this extension locally by putting symbolic link from ~/.vscode/extensions to ~/path/to/this/repo like below.

$ ln -s ~/workspace/github.com/1000ch/vscode-svgo  ~/.vscode/extensions/1000ch.svgo-local

Usage

Open the Command Palette (Cmd Shift P) and search following commands.

  • svgo: Minify current SVG file: to minify current SVG file
  • svgo: Format current SVG file: to format current SVG file

You can also execute these commands from context menu of Explorer or Editor.

You can use commands from the context menu of editor view

Config

Extension config

You can enable/disable plugins via Configure Extension Settings.

Project config

To configure with svgo.config.js, just put the config file in project root.

License

MIT © Shogo Sensui