Archive

Posts Tagged ‘Extension’

Browser Extensions To Expand GitHub Code Pages To Fill The Full Width Of Your Browser

May 27th, 2014 1 comment

The problem

I love GitHub, but one thing that I and most developers hate is that the pages that show source code (Pull requests, commits, blobs) are locked to a fixed width, and it’s only about 900 pixels.  Most developers have widescreen monitors, so their code lines are typically longer than 900 pixels.  This can make viewing code on GitHub painful because you have to constantly horizontally scroll to see a whole line of code.  I honestly can’t believe that after years GitHub still hasn’t fixed this.  It either means that the GitHub developers don’t dogfood their own product, or the website designers (not programmers) have the final say on how the site looks, in which case they don’t know their target audience very well.  Anyways, I digress.

My solution

To solve this problem I wrote a GreaseMonkey user script 2 years ago that expands the code section on GitHub to fill the width of your browser, and it works great. The problem was that GreaseMonkey is a FireFox-only extension.  Luckily, these days most browsers have a GreaseMonkey equivalent:

Internet Explorer has one called Trixie.

Chrome has one called TamperMonkey. Chrome also supports user scripts natively so you can install them without TamperMonkey, but TamperMonkey helps with the install/uninstall/managing of them.

So if you have GreaseMonkey or an equivalent installed, then you can simply go ahead and install my user script for free and start viewing code on GitHub in widescreen glory.

Alternatively, I have also released a free Chrome extension in the Chrome Web Store called Make GitHub Pages Full Width.  When you install it from the store you get all of the added Store benefits, such as having the extension sync across all of your PCs, automatically getting it installed again after you format your PC, etc.

Results

If you install the extension and a code page doesn’t expand it’s width to fit your page, just refresh the page.  If anybody knows how to fix this issue please let me know.

And to give you an idea of what the result looks like, here are 2 screenshots; one without the extension installed (top, notice some text goes out of view), and one with it (bottom).

WithoutFullWidth

WithFullWidth

Happy coding!

Awesome VS 2010 extensions I can’t live without

May 3rd, 2011 No comments

With the ability to extend Visual Studio 2010, lots of great extensions have popped up.  These not only increase productivity, but make the whole coding experience much nicer.  To find and install extensions, in Visual Studio just go to Tools -> Extension Manager.  Here’s a list of my favorites:

PowerCommands for Visual Studio 2010 – tons of features.

Productivity Power Tools – tons of features.

– Regex Editor – Quickly test your regular expressions to make sure they match all of your cases, and save them for future use. Also provides some common regex’s by default.  Automatically pops up as soon as you type "Regex r = new ".

– Search Work Items for TFS 2010 – If you’re using TFS this one is a must have; it allows you to easily do a text search on all work items.

Snippet Designer – If you create snippets, this provides a great GUI; much better than writing out all of the xml.

Spell Checker – Simple spell checker.  Great for fixing spelling mistakes in comments.  Automatically knows to ignore variable names, etc.

VSCommands 2010 – tons of features.