SVG Viewer is Sublime Text 3 plugin for viewing SVG files as pictures.
It is an improved version of the original SVG Preview
- Make sure you already have Package Control installed
- Open command pallete by pressing Ctrl+Shift+P
- Choose "Package Control: Install Package" and then press Enter
- Select "SVG Viewer" and press Enter
After installing plugin, you can use it only in online mode.
If you want use plugin in offline mode you should install SVG to PNG converter
By default we support these converters:
- CairoSVG
- Inkscape
- ImageMagick
- SVGExport (DPI not supported)
But you can add another converter
- Open SVG file
- Open command pallete and select "SVG Viewer: View SVG"
- (if fisrt run) Choose SVG converter from the suggested converters
- Profit!
If you want edit settings, key bindings or converters, do:
Preferences → Package Settings → Settings / Key Bindings / Converters - Edit
If you want to use another SVG to PNG converter, do:
- Generate command and name of your converter, such as this
{
"converter": "converter --input-file \"{name}\" --output-file \"{out}\" --dpi {dpi}"
}
- Open converters.json file (Preferences → Package Settings → Converters - Edit) and add this string
- Reopen Sublime Text, open command pallete, choose "SVG Viewer: Change Converter" and choose your converter
- Profit!