Display list of files which are checked out in TFS before closing the visual studio solution - visual-studio-2013

I want to display a list of all the files which are checked out by the user in TFS. This is just incase user has checked out some files accidentally. Is there is a setting available in Visual Studio/TFS which can do that?

Install TFS Power Tool, which provides additional menu options like by status, it can display all checked out.
Team Explorer Enhancements
This tool provides additional Visual Studio menu options and functions
to support finding files under version control by status or wildcard,
opening a folder using File Explorer from the Source Control Explorer
context menu, and labeling files and folders in Source Control
Explorer. Clone builds definitions easily and copy work item paths.
Collaborate and share with your teammates within Visual Studio using
the Team Members page in the Team Explorer tool window. You can
communicate with your team through instant messaging, share queries
and components, create workspace templates, and track your sprint
progress.

Related

Do we have Git source control explorer in Visual Studio 2017?

We get source control explorer for the TFS source control model, and it is productive.
Do we get a similar source control explorer for Git in Visual Studio 2017?
If we do have it, how do I navigate to it?
In short, no, there is no built-in UI support for Git in Visual Studio 2017.
Alternatively, you can try the following extensions based on your source control setup.
In Visual Studio, select Tools → Extensions and Updates, select Online on the left pane, search for one of the following in the search bar in the top right:
Bitbucket → install Visual Studio Bitbucket Extension
GitHub → Install GitHub Extension for Visual Studio
Git → Install Easy Git Integration Tools
The first two do a good job of providing UI controls to work with source control as they relate to Bitbucket or GitHub in a similar fashion to regular TFS integration (that you may be familiar with). I haven't tried the third one myself, and I'm not sure what that one is like.
Please see the Solution Explorer - Folder View. This can be accessed from Solution Explorer (open with CTRL+W, S), then by clicking the Solutions and Folders toggle button. In Visual Studio 2017, it looks like this:
Though it's not a 1:1 capability of the Team Foundation Source Control Explorer view, it does have the ability to view files in the local repo, open, view history, etc.
Visual Studio does not currently have Source Control Explorer for Git repositories. You might consider voting on this User Voice item to help the product team prioritize features:
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/4178754-visual-studio-tools-for-git-extension-microsoft-g
In Visual Studio 2019, open the folder for the work space using "File->Open->Folder...". The solution explorer, via "View->Solution Explorer", should display all the files which you can then right click to view history and other GIT operations.

TFS Map Team Projects to different folders

I'm using the TFS Server offered by Visual Studio Online and Visual Studio 2013.
I've mapped the DefaultCollection to C:\Users\xy\Source\TFS and the first Team Project TP1 to C:\Users\xy\Source\TFS\TP1.
Now I have a second Team Project TP2 which would automatically be mapped to C:\Users\xy\Source\TFS\TP2. Is it possible to change the path for TP2 to a completely different folder?
Yes, this is possible, but not really straight-forward. I'd advise to have a clean workspace without any pending changes, especially in the team project that you want to map differently.
Open Source Control Explorer.
In the toolbar of the window you can see a drop down box with your workspace. Choose Workspaces....
Select your workspace and click Edit....
The dialog contains a grid Working folders that you can use to add special mappings. A picker dialog for the TFS side and the local file system structure support you in this task.
Leave all the dialogs with Ok.

vs.net 2012 tfs how to select all checkout files for a user?

how can I select all the checkout files for a user in tfs 2012? When looking in the source control explorer in can see the find changesets but not a status option?
From the commandline:
tf status $/Project/ /collection:http://yourtfsserver:8080/tfs/YourCollectionName
From Team Explorer the option isn't there by default, but the Team Foundation Server Power Tools add this feature to the context menu:
Team Explorer Enhancements
This tool provides additional Visual Studio menu options and functions
to support finding files under version control by status or wildcard,
opening a folder using File Explorer from the Source Control Explorer
context menu, and labeling files and folders in Source Control
Explorer. Clone builds definitions easily and copy work item paths.
Collaborate and share with your teammates within Visual Studio using
the new Team Members page in the Team Explorer tool window. You can
communicate with your team through instant messaging, share queries
and components, create workspace templates, and track your sprint
progress.

Sync Visual Studio folder/filename structure with file system structure/filenames

I've made a lot of changes (a.k.a refactoring) to my (big) visual studio solution and it appears now that vs solution structure is very different in visual studio from what it is on the disk and TFS.
Is there a way to make file system (and TFS) have the same folder names and file names as in visual studio solution with some tool or script/program/helper add-in?
This is the list of main issues:
- when I rename project visual studio does not rename folder where this project is located
- if I move project, file to different vs folder, it just happens in visual studio, but not on the disk
You can switch between logical or physical folders in the solution by clicking the "Show all files" icon (2nd top left icon in the solution pane). When not activated, you are viewing logical folders in the solution, drag and drop simply re arrange files virtually. When activated, you are viewing physical folders, drag and drop moves files on disk, using the source controller.
No there are no tools that can help you do this automatically.
There is a two step approach to solve it, made easier by installing two add-ons. I prefer to use the Team Foundation Power Tools and the Source Control Explorer Extensions.
From the Source Control Window inside Visual Studio:
Close the open solution in Visual Studio
open the Source Control window in TFS
Move the folders around to match the structure you prefer, with the mentioned add-ons you should be able to drag/drop and rename them more easily
Alternatively, do the changes on file system with the Team Foundation Power Tools explorer extensions installed:
Close the solution in Visual Studio
navigate to your workspace folder using Windows Explorer
use the TFS context menu on the folders to check-out/rename/move the items ans folders
Then re-load the solution in Visual Studio and:
Open the solution and see that a lot of projects don't load.
Highlight a project that couldn't be found
On the project properties window (ctrl-w, p) find the file path item and click the little [...] button to navigate to the new project file location for each project.
Rightclick the projects you've updated this way in the solution explorer and reload them
Rebuild your solution to verify all changes went as expected
Check-in your changes

Custom file sorting in VS2010 Solution Explorer

Is there any way to force Solution Explorer in Visual Studio 2010 to sort files alphabetically but in order *.h, *.inl and *.cpp?
I want to have
Dummy.h
Dummy.inl
Dummy.cpp
Emmy.h
Emmy.cpp
Grammy.h
Grammy.cpp
instead of
Dummy.cpp
Dummy.h
Dummy.inl
Emmy.cpp
Emmy.h
Grammy.cpp
Grammy.h
No, there is no such feature built in.
I don't know of any extension or add-in that supports this, either, but I imagine that you could create one. Get started with the Visual Studio SDK, or browse the Visual Studio Gallery for something that serves a similar purpose.
However, the Solution Explorer does support grouping related files (such as headers, resources, and code files) into virtual folders. Turn that feature on by deselecting the second button to the left at the top of the Solution Explorer window labeled "Show All Files".

Resources