All Projects → timsneath → Gists

timsneath / Gists

Licence: MIT license
This is a simple Visual Studio extension that supports publishing a text selection or file to a GitHub Gist.

Programming Languages

C#
18002 projects

Gists

This extension allows you to select code and upload it to GitHub as a Gist for others to view. 

When installed, it will add a Create a New Gist command to the Tools menu. The first time you run it, GitHub will prompt you to approve the application for read/write access to your GitHub repo; once approved, you can use it without further authorization. 

The extension prompts you to either upload a selection or the entire file. Once uploaded, it will provide you with the URL for your Gist so that others can also use it.

Extension is live on the Visual Studio Marketplace here: https://marketplace.visualstudio.com/items?itemName=TimSneath.GistsforVisualStudio

It's a little hacky in places, but there's some good samples in the code of how to grab a selection from the Visual Studio code editor, how to identify the current filename, and how to create a dialog from within a Visual Studio extension. Hopefully it's of some use to someone. Feel free to submit issue requests or (even better) a pull request to improve it!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].