Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/1000ch/vscode-svgo

Fully featured SVGO extension for Visual Studio Code 🐯
https://github.com/1000ch/vscode-svgo

svg svgo vscode vscode-extension

Last synced: 5 days ago
JSON representation

Fully featured SVGO extension for Visual Studio Code 🐯

Awesome Lists containing this project

README

        

# vscode-svgo [![test](https://github.com/1000ch/vscode-svgo/actions/workflows/test.yml/badge.svg)](https://github.com/1000ch/vscode-svgo/actions/workflows/test.yml)

Fully featured [SVGO](http://github.com/svg/svgo) plugin for [Visual Studio Code](https://github.com/microsoft/vscode).

## Install

Execute `Extensions: Install Extensions` command from [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_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.

```bash
$ 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](https://code.visualstudio.com/docs/getstarted/userinterface#_explorer) or Editor.

![You can use commands from the context menu of editor view](./screenshot-1.png)

## Config

### Extension config

You can enable/disable [plugins](https://github.com/svg/svgo/blob/master/docs/how-it-works/en.md#3-plugins) via [Configure Extension Settings](https://code.visualstudio.com/docs/editor/extension-gallery#_configuring-extensions).

### Project config

[To configure with `svgo.config.js`](https://github.com/svg/svgo#configuration), just put the config file in project root.

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)