"Open Selection in Microsoft Excel" option missing in Visual Studio 2019 - visual-studio-2019

I am trying to export the Code Metrics Results in Visual Studio 2019 to Excel, but I am not seeing the option, "Open Selection in Microsoft Excel", in the context menu. How to enable that option?

You should be able to find the Excel option either by right clicking on one of the items in the list, or by exporting the entire list using the Excel button in the top ribbon:
If you have the window for the code metrics condensed, you may need to click the double arrows (►►) in the top right to open the menu, which should contain the Excel export button:

Related

Microsoft Team Explorer & TFS: How to open ps1 with ISE?

Currently I am experimenting with Microsoft Team Explorer and TFS server. I have several PowerShell scripts checked in.
Is there a way to control which editor Visual Studio launches when double clicking on a checked out file? I would like to start ISE. Thanks in advance.
I figured it out myself, here are the steps:
Go to Tools => External Tools
Add new item pointing to C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe
Ensure the arguments field contains $(ItemPath)
Go to Tools => Options => Keboard (ensure show all settings is checked)
Assign a keyboard shortcut to Tools.ExternalCommand1
Now you are able to directly open your script with ISE if its checked out and opened in Visual Studio's internal editor.

How can I modify the title of work items in TFS en masse?

I have a Product Backlog Item (PBI) in TFS, which has multiple Sprint Backlog Tasks (SBTs) under it in a grid.
How can I modify the title of the items in that grid without opening each one individually in the preview or otherwise?
It is possible because when selecting a WorkItem, in the half screen on the bottom, you will have its details, and thus can change it.
After you re done, you will be able to save all in one Ctrl-S
Better way :
I have done that by exporting result of query in MS Excel, modifying multiple columns and rows rapidly; then Publish the whole by one click.
For Visual Studio 2010, 2013, the following will work:
Open a list of the items you wish to edit in Visual Studio/Team Explorer Tab. This can be done via a new query.
Highlight all items (of the same type) that you want to change.
Click the ‘Open in Microsoft Office’ drop-down or right click on one of the selected task items and select ‘Open In Microsoft Excel’.
Edit the fields you are interested in using standard Excel functionality to copy/paste or replace.
Click the ‘Publish’ button at the upper left in Excel.
After that has completed, click on the Refresh icon at the top of your product backlog view in Visual Studio.
Your updated/bulk-edited entries will now appear.
You can bulk edit in Team Web Access 2010. Opening the query in Excel works better for bulk-editing the titles, but if you're going to change, say, Area Path, TWA provides expandable/collapseable nodes in the hierarchy, while Excel simply gives you a drop-down menu of values.

Can anybody find the TFS "Unshelve" option in Visual Studio 2012?

I can find the shelve button okay, and had shelved changes earlier today, but now I can't seem to find a way to unshelve them! This has left me in quite a predicament!
If this button is in fact missing in the Visual Studio 11 Beta, perhaps there is a console based TFS command I can execute to temporarily accomplish this?
Thanks all, I actually can't find an answer on Google for this either.
Go to Team Explorer, then "Pending Changes", then "Actions", then "Find Shelvesets", then right click on the shelve you want to unshelve, finally "Unshelve".
Also :
File > Source Control > Find > Find Shelvesets
I always used to right-click on the solution and choose "Unshelve". To add this functionality back:
Click on the menu "Tools > Customize". This opens the "Customize" dialog.
Select the "Commands" tab.
Choose the "Context menu" radio button in the "Choose a menu or toolbar to rearrange" section.
Choose "Project and Solution Context Menus | Solution | Source Control" from the drop down.
Click the "Add Command" button. This opens the "Add Command" dialog.
Choose "File" in the "Categories" list.
Choose "TfsUnshelvePendingChanges" in the "Commands" list.
Click the "OK" button to close the "Add Command" dialog.
Use the "Move Down" button to place the new menu item in the proper place.
Click the "Close" button to close the "Customize" dialog.
Generally if you can't find an option among the thousands available in Visual Studio there is a very useful "Quick Launch" (Ctrl-Q) function.
In this case if you type "shelve" it will show you where to find shelvesets.
Just like to add to Nock's answer that you can only see the unshelve option if you open a solution under source control.
You will not see the option if you open a blank solution, regardless if your Visual Studio workspace is connected to Team Foundation or not.
This is how it looks like if you tried unshelving a shelveset in a blank solution (with TFS connected to your Visual Studio workspace and source control all connected), where there isn't an option to unshelve from source control.
This is how it looks like with a solution under source control opened.
Moral of the answer is to open any solution/project you may have that is under the source control which has the shelveset you want to unshelve.

How to open TFS Power Tools - Alerts Explorer

I have TFS 2010 and Visual Studio 2010 Ultimate and the April TFS 2010 Power Tools installed. I am a Project Collection Administrator on my TFS Server (so permissions should not be an issue).
I want to open the alerts explorer, but when I right click on a project tab it is not there:
Just in case I tried upgrading to the March version of the TFS 2010 Power Tools. There was no change.
Opening the "Project Alerts" just gets me the normal Alerts dialog. I need to make a new alert.
Any ideas how I can get the missing menu item back?
Edit: I tried manually adding the menu item to the context menu. But I cannot find Alerts Explorer in any of the command lists.
It seems Alerts Explorer is no longer available in Team Project menu.
To create an Alert, you can open Alerts Explorer in following ways:
From the Team menu in Visual Studio, click Alerts Explorer.
From the Team Explorer window, right-click the server\team project collection and then click Alerts Explorer.
For Work Items, you can Right Click a Work Item and choose 'Alert on change..'.
For Source Control, Right Click Source Control Items and choose 'Alert on Change..'.
We had to install the Team Foundation Server Power Tools from December 2011 at http://visualstudiogallery.msdn.microsoft.com/c255a1e4-04ba-4f68-8f4e-cd473d6b971f

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

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)?
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.
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:
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.
As with many keyboard commands in Visual Studio your mileage will vary.
In the Source Control Explorer (View -> Other Windows -> Source Control Explorer):
Right click on the folder you want to grab
Click Get Specific Version
Change the dropdown from "Latest Version" to "Changeset"
Find your changeset on via the browse (...) button.
Change to search to changeset number
Just select the result and hit ok.
Alternatively, if you want to see what changes were in that changeset...
Go to the same Source Control Explorer
Click the History button (looks like a clock)
Scroll down the changeset list that appears, double click the one you want.
This will list the files changed in that changeset as well as notes the developer put.
or, from a VS command prompt type "tf changeset 1234" (make sure that your root folder is inside of your workspace or you will have to explicitly define the team project etc.)
You don't need to remember Ctrl + G shortcut, just do as below.
Open the source Control Explorer -> Right Click -> Find in Source Control -> Changeset
Then a dialog box will appear where u can specify your changeset number hit find. And it will appear in results section at the bottom, then you could go into all its details.
In the NugGet console, you can use the TFS Powershell Snapin from the TFS PowerTools.
Add-PsSnapin Microsoft.TeamFoundation.Powershell
Get-TfsChangeset <ChangesetNumber>
Another option is to open Tools > External Tools and add a new external tool that calls TF.exe changeset and prompts for arguments where you can give the changeset number.
In VS2012 you have the option to search in changesets.
if you want to search changeset...
Go to Source Control Explorer Click the Find Changeset(looks like some papers tied together) button. it is near to history button (looks like a clock)
you can search by changes checkedin by a user,containing file,and date range
try to add as much filter as possible, otherwise it will take sometime to load.

Resources