This is a modified fork of Gistify by Code Connect. This version is compatible with VS2015 and VS2017. Rather than every gist being named "fragment.cs", it will now be named "Snip-" followed by the original file name.
A Roslyn experiment.
A hassle free tool that intelligently touches-up and uploads your code snippets.
Selected snippet of code is enhanced with information about the types and origin of objects used within.
The enhanced snippet is either copied to the clipboard or uploaded to GitHub. Feel free to contribute and add more integrations!
Input:
Output:
Gistify is using some elements of the Roslyn compiler, namely the SemanticModel
and CSharpSyntaxWalker
in class CodeConnect.Gistify.Engine.DiscoveryWalker.
To get started with Roslyn, see the Learn Roslyn Now tutorial series.
Gistify has some rough edges and lots of room for improvement, feel free to contribute!