1

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

谢谢,

PS:我在标签中包含了 visual-studio-2010,因为我认为它是最接近 web developer 2010 的东西。

4

3 回答 3

0

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

于 2012-05-30T15:04:41.133 回答
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.
于 2012-05-30T15:05:40.720 回答
0

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

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

于 2013-03-19T15:00:27.287 回答