VSS: Undo Someone Else’s Check Out

July 7, 2008

One of my colleges is off sick today. I need to edit some files that he was working with on Friday. Unfortunately, he checked out these files in Visual Source Safe (VSS), but did not check them back in. As a result, Visual Studio won’t let me make any changes to these files.

From time-to-time, most VSS users need to check someone else’s files back in because they are not available to do so. Normally, in VSS, the option to undo check out is greyed-out on a file that someone else has checked out. However, if you run VSS as the Admin user, you can undo check out for another user.

To run VSS as Admin (Windows XP, VSS6):

Open a command prompt. Type the command line for VSS explorer, followed by “-yadmin”. For me this is ‘ “C:\Program Files\Microsoft Visual Studio\VSS\win32\SSEXP.EXE” -yadmin’ (including the double-quotes).

Select the database you want, and enter the admin password:

You can now right-click the files you want and undo check out:

You can accept the default on all subsequent prompts.

My thanks to Marc Hoeppner for his excellent article from which I gleaned this information.

Advertisements

Visual Studio Fonts and Colors

June 5, 2008

Some developers are really rather fussy about the way their code looks in the IDE. Instead of getting on with the job, they spend a lot of time messing about to get their environment just-so.

It looks as though I am in good company, then. Here is a sceenshot of my current Font and Color settings in Visual Studio 2005:

Features of the Scheme:

  • Dark background – easier on the eye than the default white.
  • Low contrast – The subdued colors on the dark background are easy to read, but easy on the eye. The background isn’t actually black, but very dark green. This helps keep contrast from being too harsh.
  • Retro – COBOL programmers might like it!
  • Custom font– I prefer Consolas over the default one. It can be downloaded from the Microsoft site if you don’t have it installed already.
  • Incomplete – I am still developing the theme, and have only completed the areas that I commonly use.
  • Other developers hate it– My colleagues like the default. It does discourage people from looking over my shoulder – not that anyone would care to do so anyway.

Unfortunately, WordPress won’t allow me to upload the .vsssettings file. But if you reallywant this color scheme, you can copy the following XML and save it with a .vsssettings extension:

Read the rest of this entry »