lishu / vscode-svg2

A vscode svg langauge support extension
MIT License
200 stars 10 forks source link

How can I use the prettifier to delete unecessary attributes #137

Closed janstieler closed 1 year ago

janstieler commented 1 year ago

Hi, in the command palette I get no displayed a prettify command. Or I'm wrong with prettify? I used it under Atom with the SVGO Plugin to delete some not necessary attributes in the svg. SVGMO as example allows also to delete the unnecessary (xmlns:xlink) attributes. Is there also a possibility to change color classes to fill?

Cheers

lishu commented 1 year ago

Due to SVGO compatibility issues, the earlier prettify commands have been removed and replaced with normal HTML-based formatting.

However, you can adjust all SVG compression options in the settings to get a similar effect through compression, but SVGO has limited support for more complex reference relationships, so please back up the original file before operation.

janstieler commented 1 year ago

Thanks, also if this is not really unsatisfying.