Showing posts with label ide. Show all posts
Showing posts with label ide. Show all posts

Tuesday, 27 March 2012

Using WinMerge in VS2010

My recommended tool for Compare and Merge operation in Visual Studio is WinMerge

Here is how to setup Visual Studio 2010 IDE to use it. Assuming you are using Team foundation Server and WinMerge is already installed


In IDE:
Tools->Options
Expand "Source Control"
Click "Visual Studio Team Foundation Server" link
Click "configure User Tools ..." button

click "Modify ..." for each extension
or click "Add ..." to add new one

You may add .* as an extension which will mean any file extension

Compare:
Command: C:\Program Files (x86)\WinMerge\WinMergeU.exe
Arguments: /e /u /wl /wr /dl %6 /dr %7 %1 %2

Merge:
Command: C:\Program Files (x86)\WinMerge\WinMergeU.exe
Arguments: /e /u /wl /dl %6 /dr %7 %1 %2 %4



Friday, 2 September 2011

Visual Studio, increase maximum number of code analysis warnings in IDE


When running Visual Studio Code Analysis on a project, you may encounter the following error:

   CA0503: Additional warnings cannot be displayed.

By default, a maximum of 200 warnings are displayed in the Error List.

This can be increased by modifying the following registry value(s):

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config\Setup\EDev\CodeAnalysisErrorListViolationLimit
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Setup\EDev\CodeAnalysisErrorListViolationLimit
HKEY_USERS\.DEFAULT\Software\Microsoft\VisualStudio\10.0_Config\Setup\EDev\CodeAnalysisErrorListViolationLimit



for older versions it may be here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Setup\EDev\CodeAnalysisErrorListViolationLimit

Microsoft says that 200 is the magic number based on minimum recommended system configuration.

Alternative way is to do it in IDE: 



You can configure the maximum number of errors and warnings that appear for your database project. By default, the maximum number is 200 errors and warnings.

To configure the maximum number of errors and warnings

  1. On the Tools menu, click Options.
  2. In the tree, expand the Database Tools node, and click Database Errors and Warnings.
  3. In Maximum errors and warnings to display, type the maximum number of errors and warnings that you want to appear for your database projects.
  4. Click OK.