如何在Visual Web Developer 2010中看到两个文件之间的区别?

时间:2012-05-30 14:57:11

标签: visual-studio-2010 diff

我见过一些使用“diff”命令的SVN工具,它会突出显示两个文件之间的差异。但是,我不明白如何在Visual Web developer 2010(Express)中执行此操作。任何帮助发现这种方法将不胜感激。

谢谢,

PS:我在标签中包含了visual-studio-2010,因为我认为它与Web开发人员2010最接近。

3 个答案:

答案 0 :(得分:0)

我不确定VWD是否有自己的文件比较功能,但您可以使用Windows SDK中的WinDiff。以下是版本7.1的链接 - http://www.microsoft.com/en-us/download/details.aspx?id=8279

答案 1 :(得分:0)

取自http://msdn.microsoft.com/en-us/library/bb385990.aspx

  

比较两个文件

On the View menu, click Other Windows, and then click Source Control Explorer.

In Source Control Explorer, right-click the version of the file that you want to 
  compare, and then click Compare.
NoteNote

As an option, you can right-click a file in Solution Explorer and then click Compare.

The Compare dialog box appears and the local path of the file that you selected is 
  in the Source Path box.

Enter the Target Path or click Browse and locate the target folder.

Under Target Version, select the Type you want to use for comparison: Changeset,
   Date, Label, Latest Version, or Workspace Version.

Click OK.

If the files have no differences, the Microsoft Visual Studio dialog box appears,
  informing you that the files are identical. Click OK.

Otherwise, a difference window displays the files side by side.

答案 2 :(得分:0)

我使用devart的代码比较工具,它对我来说非常有用。你可以从这里下载。

http://www.devart.com/codecompare/