How can I open a single changeset in TFS from within Visual Studio

后端 未结 6 1043
天命终不由人
天命终不由人 2021-02-03 20:43

Someone emailed me a TFS changeset ID and now I am trying to open this single changeset. Is there an easy was to do this from within Visual Studio (VS 2008 if it matters)?

6条回答
  •  自闭症患者
    2021-02-03 21:19

    In Visual Studio a keyboard shortcut can be used for pulling up a specific Changeset or Work Item.

    Go to Changeset

    In Visual Studio open the Source Control Explorer window and while it has context press
    Ctrl + G. Enter the number in the Go To Changeset dialog and press OK.

    Go to Changeset dialog

    I know this works in VS 2010, 2012 and 2013, but recall this working as far back as at least Visual Studio 2008.

    Go to Work Item

    Pressing Ctrl + G when the Team Explorer Work Items window has context brings up the Go To Work Item dialog:

    Go to Work Item dialog

    In Visual Studio 2012 and 2013 the TEAM menu contains an option Go to Work Item which also brings up this dialog.

    Last Word

    Visual Studio is a very contextual program and what happens when a specific keyboard command is used is oftentimes influenced by what window has context. To be clear pressing Ctrl + G when an editor window is open will present the Go To Line dialog.

    Go to Line dialog

    As with many keyboard commands in Visual Studio your mileage will vary.

提交回复
热议问题