Completions for popular icon fonts such as Font Awesome, Glyphicons and many more!
JavaScript
Latest commit e7c6f57 Nov 24, 2016 @idleberg bump gulp-debug to v3
Permalink
Failed to load latest commit information.
.messages fix typo Oct 24, 2016
ai add description Nov 3, 2016
brandico add description Nov 3, 2016
cc add description Nov 3, 2016
dashicons add description Nov 3, 2016
devicons add description Nov 3, 2016
ei add description Nov 3, 2016
el add description Nov 3, 2016
fa fix description Nov 24, 2016
fi add description Nov 3, 2016
fl add description Nov 3, 2016
geomicon add description Nov 3, 2016
glyphicon add description Nov 3, 2016
icono add description Nov 3, 2016
ion add description Nov 3, 2016
mdi fix invalid XML Nov 4, 2016
mfg add description Nov 3, 2016
mfizz add description Nov 3, 2016
octicon modify trigger; add description Nov 3, 2016
oi add description Nov 3, 2016
openwebicons add description Nov 3, 2016
pf add description Nov 3, 2016
ratchicons add description Nov 3, 2016
st add description Nov 3, 2016
typcn add description Nov 3, 2016
ui add description Nov 3, 2016
wi add description Nov 3, 2016
zmdi add description Nov 3, 2016
.gitignore first commit May 15, 2014
.travis.yml Update .travis.yml Oct 12, 2016
LICENSE update copyright year Feb 19, 2016
MaxCDN.sublime-completions bump Font Awesome to 4.7.0 Oct 24, 2016
README.md bump OpenWeb Icons Nov 21, 2016
cdnjs.sublime-completions bump OpenWeb Icons Nov 21, 2016
gulpfile.js replace JSON linter Oct 8, 2016
jsDelivr.sublime-completions bump OpenWeb Icons Nov 21, 2016
messages.json fix typo Mar 14, 2016
package.json bump gulp-debug to v3 Nov 24, 2016
screenshot.gif add screenshot Jun 27, 2015

README.md

sublime-icon-fonts

The MIT License Package Control GitHub release Travis

Sublime Text snippets for several popular icon fonts (see details).

This package is also available for Atom and Visual Studio Code.

Screenshot

Screenshot using the Hopscotch color scheme

Installation

Package Control

  1. Make sure you already have Package Control installed
  2. Choose “Install Package” from the Command Palette (Super+Shift+P)
  3. Select “Icon Fonts” and press Enter

GitHub

  1. Change to your Sublime Text Packages directory
  2. Clone repository git clone https://github.com/idleberg/sublime-icon-fonts "Icon Fonts"

Usage

Snippets are limited to the html and css|less|scss scopes, which might not be activated in your auto_complete_selector user preferences by default. However, you can still force the completion popup to show by pressing Ctrl+Space.

Typing the class name of an icon will complete to a tag containing the icon's class — exceptions are fa-stack (completes to <span>) and fa-ul (completes to <ul>). Press Tab to jump between tag name, classes and the space between tags.

Prefixes

Prefix Icon Font Version cdnjs jsDelivr
ai Android Icons 1.0.0 🚫 🚫
brandico Brandico Font 🚫 🚫
cc Creative Commons Icon Font 1.2.1
dashicons WordPress Dashicons 🚫 🚫
devicons Devicons 1.8.0
ei Evil Icons 1.8.0 🚫 🚫
el Elusive Icons 2.0.0 🚫 🚫
fa Font Awesome 4.7.0
fi Foundation Icons 3.0
fl Font Linux 0.8 🚫 🚫
geomicon Geomicons Open 2.0.0 🚫
glyphicon Bootstrap Glyphicons 3.3.6 🚫 🚫
icono Icono 1.3.0 🚫
ion Ionicons 2.0.1 🚫 🚫
mdi Material Design Icons 1.7.22 🚫
mfg MFG Labs Iconset 🚫 🚫
mfizz Font Mfizz 2.3.0 🚫
octicon GitHub Octicons 5.0.0 🚫 🚫
oi Open Iconic 1.1.0 🚫
openwebicons OpenWeb Icons 1.4.2
pf PaymentFont 1.1.2 🚫
ratchicon Ratchicons 2.0.2
st Stack Icons 1.0.0 🚫 🚫
typcn Typicons 2.0.7 🚫 🚫
ui Semantic UI Icons 2.0.7
wi Weather Icons 2.0.10 🚫
zmdi Material Design Iconic Font 2.2.0 🚫

Several previously supported fonts have been removed and are now available in a separate package.

Examples:

  • fa-check+Tab completes to <i class="fa fa-check"></i>
  • glyphicon-check+Tab completes to <span class="glyphicon glyphicons-check"></span>
  • well, you get the idea

Snippets also work in the text.css scope, where they complete to the Unicode value of an icon.

Example:

  • fa-check+Tab completes to '\f00c'

These snippets also work for Less, SCSS and Stylus files!

CDNs

If a supported CDN is indicated in the table above, you can use the prefixes cdnjs, jsdelivr, maxcdn to quickly insert a link to the CDN-hosted asset:

Examples:

  • cdnjs-fa+Tab completes to a <link> tag to the Font Awesome style-sheet
  • jsdelivr-fa+Tab completes to a <link> tag to the Font Awesome style-sheet
  • jsdelivr-geomicon+Tab completes to a <script> tag to the Geomicons script
  • maxcdn-fa+Tab completes to a <link> tag to the Font Awesome style-sheet

License

This work is licensed under the The MIT License.

Donate

You are welcome support this project using Flattr or Bitcoin 17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd