How to preview icons in Visual Studio Code?

174 Views Asked by At

Is the preview of an .ico image file in VS Code possible? Any extension needed/available?

All I see are question marks:

enter image description here

I tried to find an extension that might enable the preview of the .ico image.

1

There are 1 best solutions below

1
starball On

VS Code's builtin media preview extension supports .ico files. If it's not working, either

  • something is wrong with your file (it's malformed, in which case I'd suggest trying to open it with other applications that support .ico files),
  • or for some reason the "Image Preview" custom editor is not being used by default and some other editor is being used, in which case you can reopen the file with the "Image Preview" editor using the View: Reopen Editor With... command in the command palette.
  • or it's a bug, in which case I'd suggest to raise an issue ticket using Help > Report Issue in the menu bar.

If you try all that and get nowhere, then maybe try and extension. Ex. kisstkondoros.vscode-gutter-preview (I have no affiliation with this extension), which renders image for URLs in an editor in the gutter, and when hovering over the URL (really not a great workaround, but technically viable), and apparently supports .ico files.