Showing posts with label beyond compare. Show all posts
Showing posts with label beyond compare. Show all posts

Sunday, November 2, 2014

My Development Setup

Last week my PC got upgraded. This blogpost serves as a reference for all the stuff I do to personalize Visual Studio and Fiddler.

First thing I do is disable 'Automatically adjust visual experience based on client performance' and 'Enable rich client visual experience', but keep 'Use hardware graphics acceleration if available' enabled. Speed is everything baby!

Then I customize the toolbar and add BC. Pro-tip; remove all toolbar button's you never use.

I always install the following plugins:

Setup the Rename Visual Studio Window Title plugin (to see which branch I'm working in):

Setup Scrum Power Tools (I use this for code reviews and workitem shortcuts in the toolbar):
  1. Assign the work item and backlog items to Shortcut #1 and Shortcut #2
  2. Customize the toolbar and add the button for Shortcut #1 and Shortcut #2 to the standard toolbar

This is what my final toolbar looks like:


I also use fiddler for API debugging. For API's its really important to see the HTTP method. To add this column, enable / add the following block in the Rules > Customize rules file:
public static BindUIColumn("Method", 60)
function FillMethodColumn(oS: Session): String {
   return oS.RequestMethod;
}

When you also retrieve large binary blocks, fiddler can really slow down when you accidentically click on one. The very powerfull Customize rules file, also has a solution for this. Add the following code inside the OnPeekAtResponseHeadersfunction. This will drop large response bodies, which slows down fiddler.
// This block enables streaming for files larger than 5mb
if (oSession.oResponse.headers.Exists("Content-Length"))
{
  var sLen = oSession.oResponse["Content-Length"];
  var iLen: Int32 = 0;
  if (!isNaN(sLen)){
    iLen = parseInt(sLen);
    if (iLen > 5120000) {
      oSession.bBufferResponse = false;
      oSession["ui-color"] = "brown";
      oSession["log-drop-response-body"] = "save memory";
    }
  }
}

Tuesday, June 4, 2013

Beyond Compare is Beyond Awesome with Source Control Integration

Just found out the Source Control Integration with Beyond Compare Pro, this is awesome! First install the TFS  SCC provider and click on Tools -> Source Controls Integration.


Now see a window where you can add the same folders as your mapped TFS workspaces. But when you now start to compare, merge or edit a file which is checked in, you get the following popup:


Nice, isn't it? So now you don't have to go to VS to checkout the item manually and this works a lot faster!

Cheers,
Luuk

Friday, February 3, 2012

How to add Beyond Compare to Visual Studio TFS

To use the mother of all compare tools "Beyond Compare" as your default code comparer in Visual Studio 2010, you need to follow the next steps:

1. Install BC3 (Download the trial and buy it if you like at http://www.scootersoftware.com)

2. Go to the options followed by Source Control, Visual Studio Team Foundation Server and click on Configure User Tools.

3. Click on Add and add a Compare command for extension .* using command C:\Program Files (x86)\Beyond Compare 3\BComp.exe and arguments %1 %2 /title1=%6 /title2=%7

4. Click on Add and add a Merge command for extension .* using command C:\Program Files (x86)\Beyond Compare 3\BComp.exe and arguments %1 %2 /savetarget=%4 /title1=%6 /title2=%7
- or -
if you want BC Pro's 3-way merge: %1 %2 %3 %4 /title1=%6 /title2=%7 /title3=%8 /title4=%9



You need to use the bcomp.exe, else it wound work see http://www.scootersoftware.com/vbulletin/showthread.php?t=5538

Cheers,
L