Using GIT with Visual Studio 2013

Git, has been around for quite some time now. All major repository hosting services like GitHub, Bitbucket and now even Codeplex recommended users to opt for GIT as a recommended/default type of source control system for your project.

I have been avoiding GIT for a very longg time, the only reason being is familiarity and love for SVN :) So when I wanted to created a new project – qask on Codeplex and found that the SVN option was no longer present on codeplex. I decided to (finally) give GIT a try…

enter image description here

You might also want to read this beautiful question & answer on GIT vs SVN : Why is Git better than Subversion?

1. Changing the Source Control plugin

Once you have your project opened, go to ‘Tools > Options’, go to ‘Source Control’ sub menu and select ‘Microsoft Git Provider’ from the source control plugin dropdown and press ‘ok’.

enter image description here

and that’s it.

2. Commit and Sync

Once you have configured as above, your team explorer will look something like this :

enter image description here

you can see your pending changes, and commit with a message using the screen below :

enter image description here

enter image description here

Post every commit you will be given an option to sync, you can sync every time you commit or whenever you want to.

enter image description here

enter image description here

enter image description here

Hope this helps. A more detailed post on Git version control with Visual Studio 2013 is present here, a must read for any newbies to GIT.

Using Source Code Pro Font With Visual Studio

Last November Adobe release a new font, named Source Code Pro. I use Visual Studio 2010 as my IDE, and I constantly keep on changing its look and feel. Today I tried out this Source Code Pro font and I must tell you it is very beautiful !


Given that I am always looking for the perfect coding environment, I decided to install Source Code Pro, and set it up in Visual Studio.

To get started you need to do the following:

  • Download the latest release from their GitHub page.
  • Extract the fonts to a folder.
  • Navigate to the folder that contains the Source Code Pro fonts.
  • Select the fonts. (I selected all the ones with .ttf to install)
  • Right-click the selected fonts and choose “Install.”
  • The fonts are now installed and will appear in the font menus of your applications.
  • Open Visual Studio.
  • Go to Tools > Options > Fonts and Colors.
  • Change the Font to Source Code Pro in the drop down.
  • Restart Visual Studio.
  • Now you are ready to start using Source Code Pro.

Below are few screenshots I took…

Source Code Pro 1

In case you are wondering what theme I am using with my Visual Studio along with Source Code Pro font, it is Son of Obsidian which can be downloaded from here

Cheers !

How to Pimp my Visual Studio – Change style / font / colors and more..

I recently bumped into this very-awesome site called : Studio Styles. Here is a link to what exactly it’s all about. It basically allows you to change your VS color scheme.

You can browse through the various color schemes submitted by other users and download it. You can even submit/create your own VS color scheme. Once downloaded the installation is pretty straight forward, you just need to import the settings you have downloaded using Visual Studio > Tools > Import and Export Settings.... Read faq for more info.

So, here’s what I created :)
Download this color scheme. (* Uses Droid Sans Mono font)

Preview :

This setting works great with DROID SANS MONO font. You can download and install the font (DROID SANS MONO) from here.

Hope this helps :)

How to show line numbers in Visual Studio 2010 / 2012 / 2008

Displaying line number in code is important, particularly when doing pair programming. Visual Studio has this feature built in but is turned off by default. Here is how to turn it On.

On the menu bar, choose Tools > Options. In the Option box select Languages > General. And select the Display :- Line number checkbox.

Below is how the line number looks like…

Hope this helps :)

How to collapse all items in Solution Explorer in Visual Studio with Resharper ?

Today I wanted to find, if Resharper provides a shortcut to ‘Collapse All’ items in the Solution Explorer? A little search on google led to this thread on JetBrain’s Dev Community.

As you can see in the screenshot below, there is an option called Collapse All and a shortcut key next to it.

Now this shortcut key will not work for you ! Unless you set it up using Tools > Options > Keyboard. The command name is CollapseInSolutionExplorerAction. Search using this command name and assign a shortcut key of your choice.

This made my life easier, I hope it does your’s too ;)

Further Reading :

Visual Studio: Is there a way to collapse all items of Solution Explorer?
JetBrain’s : Collapse All shortcut