GithubHelp home page GithubHelp logo

open-sourced-olaf / get-svg-icons Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 5.0 3.38 MB

A VS code extension for inline replacement of icons to svg

Home Page: https://marketplace.visualstudio.com/items?itemName=marcochan.get-svg-icons

License: MIT License

Python 3.88% TypeScript 96.12%
vscode vscode-extension svg-icons icon-preview inline-replacement bootstrap-icons vscode-api typescript

get-svg-icons's Introduction

Get Svg Icons

View icons from bootstrap's icon library and insert them into your code through snippets.

Installation

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

Built with:

  • Typescript
  • VS Code API
  • Python for web-scraping

Extension Settings

To customize languages we support for inline snippet completion, icon-color and icon-size for hover preview

  • Navigate to extension settings
  • Choose Extension Settings
  • From here, you can customize getSvgIcons.iconColor, getSvgIcons.iconSize and getSvgIcons.selector

Icon source

Prefixes

Prefix SVG Icons Version
icon- Bootstrap Icons 1.0

Contributors

How to run locally?

  • Clone the repository

    git clone https://github.com/Open-Sourced-Olaf/Get-svg-icons.git

  • Install node dependencies with npm install

  • Open project with VS Code

  • Press F5 or run Launch Extension in the debug window or run npm run compile

How to contribute?

Take a look at the contribution guidelines and open a new issue or pull request on GitHub.

Release Notes

1.0.0

Initial release of the extension


get-svg-icons's People

Contributors

anjalisoni3655 avatar bodhisha avatar m2chan avatar rashi-s17 avatar sgkolli535 avatar steven-tey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

get-svg-icons's Issues

Add "favorite icons" functionality

In the sidebar list of icons, add a functionality to mark favorite icons and add a "Show favorite" button in the sidebar from where all those icons can be accessed.

Add more icon libraries

Currently, we are using bootstrap icon library to get icons for this extension. It will be great if we can incorporate some more icon libraries.

JSON file Creation

Create a JSON file of all the key-value pairs of icon_names & their corresponding svg

Add color picker in sidebar

Currently, we have height and width customization options available. It will be great to have a color picker as well to change the color of icons from the sidebar itself.

Testing

Unit testing our extension

Use icon font

Hello there and thank you for this great extension!
Do you plan to implement autocompletion for the "icon font" mode that's provided by Bootstrap Icons? This would keep markup code to a minimum.
https://icons.getbootstrap.com/#icon-font

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.