DEV Community

Cover image for Get-svg-icons : VS Code Extension
Bodhisha Thomas
Bodhisha Thomas

Posted on • Edited on

Get-svg-icons : VS Code Extension

If you are a frontend developer, it's obvious about the time and thoughts you take to fix on a perfect icon for your website. You have to navigate to websites like Flaticon, Font Awesome, Material Icons etc., find suitable icons, download the SVG or copy the font and finally need to include the corresponding libraries to your code base. Reducing this hassle and the bundle size associated with importing external packages was the main inspiration behind this VS Code extension.

With Get-Svg-Icons extension, you no longer have to navigate to other websites to choose your icon, everything comes handy on VS code itself. A side panel with customizable icons and the inline icon suggestions on vscode editor makes the process easy and thus increase productivity of developers.

Features

Side Panel with customizable icons

  • Side Panel with around 1300+ icons
  • Users can search for the icon-name (or tags associated with it) and choose the desired icon
  • On clicking on the icon, corresponding svg code will be inserted at the last active position on the code editor
  • Users can change the height and width of the svg directly from the side panel

demo

Inline Icon suggestions

  • Type "icon-" (without quotes) to start auto-completing icons. If the icon preview is not showing up (as shown in the GIF below), press Ctrl+Space (default hotkey) or press the ">" icon to expand the details view.
  • An inline replacement of the selected icon with its svg will be done.

demo

Icon preview on hover

  • On hovering over the svg code (class name) , you can preview the icon of the corresponding svg snippet

Get the extension here
Want to contribute? Head over to the Github Repository

Top comments (14)

Collapse
 
abhinavd26 profile image
Abhinav Dubey

This is good one. But I think it will slow down the performance of website if we are adding CDNs for every icon we use. Better approach would be to have them in Local System and then use it, if I am not wrong.

However the trick is damn cool, will try it for sure 😍.

Collapse
 
bodhisha profile image
Bodhisha Thomas

Thanks a lot.. ❤
We are not actually adding any CDNs. When we select the icon, its corresponding svg snippet is added to the code. (user need not have to import any icon libraries or add any CDN links).

Collapse
 
abhinavd26 profile image
Abhinav Dubey

If it is so, then its really great, but I wonder that url - w3.org, will it impact the performance of website when deployed in production, I mean loading time and all stuffs ??

Thread Thread
 
walidvb profile image
Walid

This is the namespace, which is required for all svgs afaik

Collapse
 
aavinseth profile image
Aavin Seth

I have created a site icon2image.com where Bootstrap icons, Font Awesome free icons, Material icons can be resized with changing of background and icon color, Rotate and convert into image and download in png, jpg, svg, webp and base64 format for free.

Collapse
 
juanma1331 profile image
juanma1331

Nice. I like it. Congratss

Collapse
 
bodhisha profile image
Bodhisha Thomas

Thanks a lot.. ❤ @juanma1331

Collapse
 
biomathcode profile image
Pratik sharma

ohh really a great productivity booster. No need to include those libraries.

Collapse
 
gingerbreadfork profile image
Gingerbreadfork

This is handy, especially for placeholders where you just want something there quickly. Nice stuff.

Collapse
 
amircahyadi profile image
Amir-cahyadi

Awesome 👍

Collapse
 
bodhisha profile image
Bodhisha Thomas

Thanks a lot.. ❤

Collapse
 
debugagrawal profile image
Deepak Vijay Agrawal • Edited

Amazing work @bodhisha ✨💯✨, It's really helpful, (icons in SocioMark 😁)

Collapse
 
roneo profile image
Roneo.org

Awesome, thank you!

Collapse
 
mddanishyusuf profile image
Mohd Danish

There is something simple and easy.

iconbuddy.com/vs-code-extension