Glyphfriend is a Visual Studio extension to enhance the existing Intellisense to display preview glyphs for many of the common glyph-based font libraries like Font Awesome, Bootstrap, and much more.
Glyphfriend has a separate extension for both Visual Studio 2015, Visual Studio 2017, Visual Studio 2019, so to get started, you'll simply need to download the version(s) that apply to you from the Visual Studio Marketplace:
You can also just search for it within the Tools > Extensions and Updates or Extensions > Manage Extensions area of Visual Studio.
After installing the extension, that's it. Glyphfriend will automatically detect when a valid HTML flavored file is opened and it will add all of the supported icons to the autocompletion within class
attributes as seen below:
By default, Glyphfriend has support for Bootstrap Glyphicons enabled by default, however you can easily select the libraries that you prefer to use by simply right-clicking and selecting the preferred library from the Glyphfriend context menu in any HTML-supported file as seen below:
It's important to note that library preferences are persistent across Visual Studio sessions. Basically, you will only need to define which libraries that you want to use and they will be available the next time you open Visual Studio.
Within this repository you'll find all of the necessary projects that make Glyphfriend work, which can be described below:
If you find an issue or encounter a problem with the extension, please don't hesitate to contact me or file an issue with the Issues are of this repository and I'll try to address it as soon as possible.
NOTE: If you use Resharper, then Glyphfriend may not work properly (or at all), so read this.
Issues with Resharper and Glyphfriend have been widely reported (enough to warrant a spot here) and are outside of my control. Many of the APIs that Glyphfriend relies on are overridden by Resharper and thus don't allow the extension to ever be accessed by Visual Studio directly.
The following two options have been successful with other Resharper users, so I would highly recommend trying either of them:
Pull Requests are openly accepted and encouraged.
The libraries that were chosen were just some of the more common ones that I had come across, but I am sure that I left quite a few out. If you find that one of your favorites is missing, you can either report it within the Issues area or just clone this repository, make a fork and add your changes (and then just make a pull request when you are all done).
I would like to give a special shout-out to several members of the community, including a few from the Visual Studio Tooling team, for their assistance in evolving, developing, and testing Glyphfriend:
Additionally, I want to thank everyone for their feedback on the extension, new feature ideas, and all of the folks that don't hesitate to shoot an e-mail my way regarding the project.