• Stars
    star
    156
  • Rank 238,558 (Top 5 %)
  • Language
    C#
  • License
    Other
  • Created almost 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Glyphfriend is a Visual Studio Extension to add previews for various icon/glyph fonts to Visual Studio.

Glyphfriend

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.

Supported Glyphs and Libraries

Getting Started

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:

Glyphfriend in Action

Setting Preferences

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:

Glyphfriend Library Toggling

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.

What's In Here?

Within this repository you'll find all of the necessary projects that make Glyphfriend work, which can be described below:

  • Glyphfriend.Core - This project is a Shared Library for Visual Studio 2019 that contains all of the necessary code for the extension to work. Namely the autocompletion providers and the necessary code to handle deserializing the glyphs at run-time.
  • Glyphfriend.Core.Legacy - This project is a Shared Library for Visual Studio 2015/2017 that contains all of the necessary code for the extension to work. Namely the autocompletion providers and the necessary code to handle deserializing the glyphs at run-time.
  • Glyphfriend.Packager - This project functions as a build-time dependency for the two extension projects and handles generating a binary file containing all of the glyph mappings (via Protobuf), which is consumed and deserialized within the Glyphfriend.Core package.
  • Glyphfriend.VS2015 - This project stores all of the necessary manifest information for the Visual Studio 2015 extension, and defines all of the metadata that populates the marketplace.
  • Glyphfriend.VS2017 - This project stores all of the necessary manifest information for the Visual Studio 2017 extension, and defines all of the metadata that populates the marketplace.
  • Glyphfriend.VS2019 - This project stores all of the necessary manifest information for the Visual Studio 2019 extension, and defines all of the metadata that populates the marketplace.

Find an Issue?

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:

  • Try disabling any HTML features within Resharper - By disabling the HTML autocompletion and other features, this should hopefully allow for Glyphfriend to hook into the necessary APIs and work as expected.
  • Consider downloading the ResharperGlyphfriend Plug-in - A member of the community, Kelby Hunt (Huntk23) wrote a Resharper plug-in port of Glyphfriend, which attempts to implement much of the functionality of this extension. Consider downloading it if the previous approach didn't work as expected.

Missing Something?

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).

Thanks

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.

More Repositories

1

Advanced-Auditing

This is a more advanced example of implementing Audit Trails using ASP.NET MVC Action Filters
JavaScript
33
star
2

borbs

A collection of various editable Borb SVG images so you can join the Borb movement.
18
star
3

Basic-Auditing

This is a basic example of implementing Audit Trails using ASP.NET MVC Action Filters
JavaScript
14
star
4

Using-CORS-in-ASP.NET-WebAPI

This is a very basic example of using CORS within ASP.NET Web API Applications.
JavaScript
11
star
5

NodeServicesExample

Basic Web API Examples of NodeServices
JavaScript
11
star
6

CookieAwareWebClient

A simple extension of the existing WebClient class to handle implementing persisting authentication cookies and adding timeouts.
C#
5
star
7

RegExpBuilder-Examples

A collection of examples using the RegExpBuilder library and how it can be used to generate Regular Expressions in a human-readable format
JavaScript
5
star
8

SocialSecurityValidation

These are a series of examples of how to properly validate U.S. Social Security Numbers using a variety of different levels of severity through both Javascript and C#.
C#
4
star
9

ThirdThursdayBot

A simple restaurant recommendation bot to help my friends and I decide where to go eat/drink each month.
C#
4
star
10

MicrosoftCodeDiggerExamples

This is an example project that contains three simple methods that were analyzed using Microsoft Code Digger
C#
3
star
11

SimpleModularityExamples

A simple, example application demonstrating how to implement modularity within ASP.NET MVC applications through Areas.
C#
2
star
12

ConfigRExamples

A set of examples demonstrating some of the functionality of ConfigR in both Console and Web Applications.
C#
1
star
13

AspNetCoreSwashbuckleAutoRest

A sample demonstrating an ASP.NET Core Web API with an AutoRest-generated client console application.
C#
1
star
14

Linq-To-Wiki-Example-Code

This is a basic example of querying Wikipedia through the LINQ-To-Wiki Library
C#
1
star
15

QueryBuilder

A simple C# Query Builder that automatically handles parameterizing queries through String Interpolation
C#
1
star
16

Intelligencia.UrlRewriter.dll

This is an easily and accessible download of the Intelligencia.UrlRewriter.dll file.
1
star
17

CasingExamples

This example covers handling extension methods within C# and Visual Basic and using them to apply a variety of different "Casing" methods to strings within .NET
Visual Basic
1
star
18

MailChimpDLL

A copy of the MailChimp Dynamic Link Library compiled from the MailChimp.NET API Project. (Primarily for a user that didn't have access to compile it themselves)
1
star