来自 Visual Studio 内的指责源文件
我在 Visual Studio 2010 中使用 AnkSVN,它满足了我 95% 的 SVN 需求。最大的缺失功能是我找不到直接从 VS 中指责文件的方法。我当前使用的解决方法是右键单击选项卡列表中的文件,然后选择“打开所在文件夹”,然后右键单击资源管理器中的文件以调用 Blame。
I'm using AnkSVN within Visual Studio 2010, and it covers ~95% of my SVN needs. The biggest missing feature is that I can't find a way to blame a file from directly within VS. The workaround I currently use is to right click on the file within the tablist, and select Open Containing Folder, and then right clicking on the file in Explorer to call Blame.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它在 AnhkSVN 中称为 Annotate。
颠覆->在上下文菜单中进行注释。
It's called Annotate in AnhkSVN.
Subversion -> Annotate in the context menu.
我不喜欢 AnkhSVN 的注释功能。因此我使用了以下内容:
如何将 TortoiseSVN 集成到 Visual Studio。
上述 url 中的内容:
如果您使用的是 Visual Studio,则可以将 TortoiseSVN 命令集成到各种上下文菜单中。
第一步是将 TortoiseSVN 命令添加为外部工具,在菜单 TOOLS->External Tools... 下
添加命令名称、TortoiseProc.exe 的路径,然后添加命令的参数。
在需要的地方使用 VS 变量。由于我将命令添加到打开文件选项卡的上下文菜单中,因此以下是我使用的参数:
注意 /line: 参数:这将使 TortoiseBlame 自动滚动到光标在 Visual Studio 中打开的文件中所在的同一行。
现在,要将这些新命令添加到文件选项卡上下文菜单中,请转至工具 -> 自定义...,选择命令选项卡,单击单选按钮上下文菜单,然后选择其他上下文菜单 |简单的 MDI 文档窗口。
现在您必须选择命令。问题是自定义命令不显示其标题,而仅显示为外部命令 X,其中 X 是外部命令的编号。
就我而言,命令编号为 9-11,您可能需要在这里进行一些反复试验。只需添加您认为添加的命令,然后检查上下文菜单中是否显示正确的命令。
注意:在 Visual Studio 2010 中,要向文档选项卡的右键单击菜单添加命令,首先需要右键单击 Visual Studio 文档选项卡以解决 Visual Studio bug。 (否则 Easy MDI 文档窗口上下文菜单不会显示在“自定义”对话框中。) 来源
I didn't like AnkhSVN's Annotate feature. So I used the following:
How to integrate TortoiseSVN into Visual Studio.
Content from above url:
If you're using Visual Studio, you can integrate TortoiseSVN commands to various context menus.
The first step is to add the TortoiseSVN commands as external tools, under the menu TOOLS->External Tools....
Add the name of the command, the path to TortoiseProc.exe and then the parameters for the command.
Use the VS variables wherever needed. Since I add my commands to the context menu of the open file tab, here's the parameters I used:
Notice the /line: parameter: this will make TortoiseBlame automatically scroll to the same line the cursor is located in the opened file in Visual Studio.
Now to add those new commands to the file tab context menu, go to TOOLS->Customize..., select the Commands tab, click the radio button Context menu and then select Other Context Menus | Easy MDI Document Window.
Now you have to select the commands. Problem is that the custom commands are not shown with their title but only as External Command X with X being the number of the external command.
In my case, the commands were number 9-11, you might have to do some trial-and-error here. Just add the commands you think are the ones you added and then check if the right ones show up in the context menu.
NOTE: In Visual Studio 2010 to add a command to the right-click menu of a document’s tab, first you’ll need to right-click on a Visual Studio document tab to work around a Visual Studio bug. (Otherwise the Easy MDI Document Window context menu doesn’t show up in the Customize dialog.) Source