Tag: Visual Studio

Bitbucket Extension for Visual Studio

I started working in a new company recently, one that uses the Atlassian Bitbucket repository for source control. I\m not a big fan, but it’s Git. Anyway, I needed to integrate it with Visual Studio 2017, so I fired up the Extensions and Updates dialog from the Tools menu. I typed in ‘bitbucket’ in the search field, and found one extension, Visual Studio Bitbucket Extension by NextIteration v. 1.37.1 at the of writing this, which I then downloaded and installed. Unfortunately I couldn’t find in the Source Control section of the Options dialog box, found on the Tools menu; it just wasn’t shown in the Current source control plug-in dropdown list. I closed the Options dialog, and switched to the Team Explorer window which didn’t show the extension either. So, I went to the Visual Studio market place and found another extension by MistyK, https://marketplace.visualstudio.com/items?itemName=MistyK.VisualStudioBitbucketExtension. Installing that, did the trick, even if this extension was also version 1.37.1, go figure…

Advertisements

C# Comments

This is another of my pet peeves when looking at other people’s code. If you add a comment, using the double forward-slash //, then add a freaking space after // to make it stand out from code that has been commented out. It pisses me off right, left and center to see this:

//TODO blah, blah

…or this:

//Here is where you add...

Why not just do this, so flipping simple:

// TODO:

This will avoid any potential mistake when glancing over the code, where the code below has is clearly commented out code, and the first examples above are not:

//var numDays = int.Parse(Console.ReadLine());
//var numPeople = 5;
//var numPeopleShared = 0;

Do feel free to share your opinion and experience on the same.