snippets icon indicating copy to clipboard operation
snippets copied to clipboard

[Feature Request] Add possibility to preview the snippet with syntax highlighting

Open FatehAK opened this issue 3 years ago • 1 comments

Great extension so far! Wonder why VS Code doesn't have this built in. As I was using the extension I observed the need to view the snippet before I paste it inside the editor. It would be cool if we had like an eye icon next to the snippet name in the sidebar which would allow us to preview the snippet on the fly.

This could come handy in cases where we sometimes don't want to copy the snippet, but just want to check it out as a form of example code.

FatehAK avatar Jan 04 '21 07:01 FatehAK

@FatehAK thanks for the feedback ! I already added a tooltip when hovering : image

But indeed, we can add something that will show the full snippet. One thing to consider, is that it should be a popup or something quick, opening a new tab for instance for only a preview is not that practical. I'll update with feedback once I check the possibilities.

tahabasri avatar Apr 10 '21 23:04 tahabasri

Fixed by https://github.com/tahabasri/snippets/pull/77 @FatehAK tooltip expanded to show more content: image

tahabasri avatar Sep 02 '23 16:09 tahabasri