Diskdrive
Diskdrive

Reputation: 18865

Can I easily edit code without check out in Visual Studio?

A lot of the times, when I examine code, I like to use intellisense to kind of get a feel for the structure. It's a quick way to know what variables exist and which are in context etc.

However, in Visual Studio 2008, this always results in a check out of TFS. Is it possible to change it so that TFS has to expicitly ask me if I want to check out and if I say no, then I can still edit the file on my workspace.

Or perhaps even better, can TFS automatically detect that a file has got no changes and automatically check in.

I just find that when I check in, I will have all these files which are checked out and half of them have no changes

Upvotes: 1

Views: 1903

Answers (2)

Dmitriy
Dmitriy

Reputation: 1972

If you don't save your changes to the code, after you've got "the feeling of the structure", then this may help:

Tools->Options->Source Control->Environment

Change "Editing" drop-down value to "Do nothing". Also, there is a checkbox "Check-in everything when solution or project closing".

Upvotes: 3

Afshar
Afshar

Reputation: 11543

I suggest using F12 (go to definition) instead of intellisense. This way you will see all overloads, their arguments, etc without having to check-out any thing.

Upvotes: 1

Related Questions