Now, if the repository you're working from in Visual Studio is hosted and connected to
GitHub.com, you should be able to use GitHub's Code Search directly from the Text Editor in Visual Studio now by highlighting text and clicking on the same Code Search menu option. Looks like this:

Side note: With the original release there was a little confusion from the description of the extension as to what it actually does. I originally made this to work specifically for Microsoft's Code Search, which runs as an extension either in Team Foundation Server or Visual Studio Team Services. A couple engineers stated they were trying to connect using BitBucket and other Git providers but Microsoft's Code Search is an extension that is only built to run in TFS or VSTS. The search technology varies across different source control platforms as well as the way the search URL's are constructed so the exceptions are expected. You can read more about
Microsoft's Code Search (powered by
ElasicSearch)
here. I updated the description of the extension to hopefully eliminate some of the confusion. The extension is still all open source here on GitHub if you'd like to contribute or if you need to step through any errors, feel free to check it out.
Thanks again for all the positive feedback from all my friends out there! Also, never stop
upgrading! Check these out: