Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From time to time, I realize that files that haven't been modified have been checked out by my Visual Studio. It's either because I changed something and undid it, or just because Visual Studio decided to check out the file for no obvious reasons (eg if you modify the code of a winform, Visual Studio will automatically checkout the associated .Designer.cs for you)

Since I have the habit of making a diff of all my checkins, It would be a nice time-saver to be able to spot them at a glance (or event to automatically perform undo checkout on those)

Did someone find a solution to this?

share|improve this question

closed as off-topic by gnat, MichaelT, Bart van Ingen Schenau, Kilian Foth, amon Feb 3 '14 at 17:39

  • This question does not appear to be about software development within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

I think this would have been better asked on Stack Overflow as it's a programming related question, but I see from the answer that it already has been asked. – ChrisF Jul 6 '11 at 8:18
@chrisf the better way to describe this is that it is not a "whiteboard, conceptual" question. It has a concrete and definite answer.. it's also something you would ask while sitting in front of your code editor. see… – Jeff Atwood Jul 6 '11 at 9:16
Understood ; should I delete it then? Btw, you should edit the "What kind of questions should I not ask here?" section of the FAQ which is just wrong (isn't it?) – Brann Jul 7 '11 at 0:43
This question appears to be off-topic because it is tour implementation / programming tools - belongs to Stack Overflow but is too old to migrate – gnat Jan 29 '14 at 16:35
Not worth a separate answer, but I found switching VS to always prompt when checking out files helped me keep track of which files it was really checking out and being selective about it. – Kevin Jan 30 '14 at 1:13
up vote 4 down vote accepted

This question on SO seems to be ticket.

It refers to the TFS power tools.

But see the comments:

Watch out though! I just tried to use this, and it does undo unchanged files. However, the command also sync's your workspace up to the latest version before it does the undo. Getting the latest versions is something I definitely didn't want to do.


Hum. There is a /noget switch to turn the get off, darn, I wish I'd seen that before running the UU command.

share|improve this answer

EDIT: This trick appears to undo new files.

You can do it in Visual Studio by doing Undo All, then when it asks:

TF10190: C:\... has changed. Undo check-out and discard changes?

Yes    Yes to All    No    No to All    Cancel

Click "No to All".

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.