lishu / vscode-svg2

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

No preview functionality #141

Closed jp-lg closed 1 year ago

jp-lg commented 1 year ago

There doesn't appear to be any option to show a preview - it's not explained in the documentation how to show it - the GIF isn't really sufficient. It is possible that there is maybe a conflicting VSCode setting.

lishu commented 1 year ago

Make sure the file type in the bottom right corner reads 'SVG'.

Click the preview icon in the upper-right corner of the active editor.

alleluya-young commented 1 year ago

hi, 英语不太好 说中文了 预览svg这个功能我记得之前右键的时候是有的 今天用的时候发现没了? 请问现在只能通过右上角的预览按钮或者ctrl+shift+p 搜svg.showSvg才能预览么?(在不自己绑定热键的情况下)

jp-lg commented 1 year ago

Thanks, got it sorted - I had the vscode status bar hidden, and when I unhid it it showed that I needed to configure the file association for svgs. All working now.

lishu commented 1 year ago

hi, 英语不太好 说中文了 预览svg这个功能我记得之前右键的时候是有的 今天用的时候发现没了? 请问现在只能通过右上角的预览按钮或者ctrl+shift+p 搜svg.showSvg才能预览么?(在不自己绑定热键的情况下)

我这里没有问题啊,有其它信息可以参考吗? image image

可以试试先打开一次 svg 文件。看看是不是因为插件没有初始化

alleluya-young commented 1 year ago

hi, 英语不太好 说中文了 预览svg这个功能我记得之前右键的时候是有的 今天用的时候发现没了? 请问现在只能通过右上角的预览按钮或者ctrl+shift+p 搜svg.showSvg才能预览么?(在不自己绑定热键的情况下)

我这里没有问题啊,有其它信息可以参考吗? image image

可以试试先打开一次 svg 文件。看看是不是因为插件没有初始化

噢噢 这里右键是有预览的 我记得之前在svg文件内右键也能看到的 可能是我记错了? image