(redirected from DotNet.VisualStudio)




Microsoft product page for VS
MSDN: Visual Studio Developers Center
Visual Studio Magazine


An Obsessive Compulsive Guide To Source Code Formatting [in VisualStudio


Activity log
Devenv command-line switches



General use

multi-monitor support
MSDN: Quick tour of the VS2010 IDE
http://msdn.microsoft.com/en-us/vstudio/cc136611 - misc “Learning Visual Studio” resources



Express Edition

see VisualStudioExpress



Plugins and extensions

General List




Keyboard Shortcuts
4.0 default keymap (pdf)



Build Events

MSDN: How to Specify Build Events (C#)
Post-bujild events to copy DLLs
Use Visual Studio’s Post-Build Events to Automate Unit Testing Running
Customize Your Project Build Process
potential “gotcha”: error-checking only at end of event -- dated 2006, so not sure if this still applies to VS2010


Build Versioning

There is no VS macro to access the version numbers, but this CodeProject article builds some simple tools that can be used, and answers in StackOverflow: Determine assembly version during a post-build event point us to the MS Tool filever.exe


Auto-Increment the Assembly Version

Q Can I automatically increment the file build version when using Visual Studio? A: YES


open up the AssemblyInfo.cs file and change

// You can specify all the values or you can default the Build and Revision Numbers
    // by using the '*' as shown below:
    // [assembly: AssemblyVersion("1.0.*")]
    [assembly: AssemblyVersion("")]
    [assembly: AssemblyFileVersion("")]





[assembly: AssemblyVersion("1.0.*")]
    //[assembly: AssemblyFileVersion("")]



In VS2012 (at least), you can now auto-increment on Publish.
how to auto increment project version number on VS 2012



MS Build

overview of MS Build for VS 2010



New Installation

Install express, or whatever you’ve got
Export settings, and import on target machine
Export and import Visual Studio 2010 extensions

  1. Copy %localappdata%\microsoft\VisualStudio\10.0\Extensions to the same directory on the new machine.
    • it may be a different folder, if you changed default install settings
    • on one machine, I found it @ d:\dev\Microsoft_Visual_Studio_10.0\Common7\IDE\Extensions
      • uh, this note may be incorrect. I think I was looking in the wrong area. try localappdata FIRST
  2. Open VS on the new machine, go to the extension manager, and Enable all the extensions.
    • By default, VS disables extensions that just appear in that directory but it didn’t put there.



lists of default shortcuts



(I need to keep a list of these, as I keep forgetting them. Didn’t I have some bookmarked, somewhere ?!?!?)



next/previous bookmark in this document

make Ctrl + K, Ctrl + N (next bookmark) stay within the same file

you have two other commands that by default are not assigned a shortcut:

    Previous Bookmark In Document
    Next Bookmark In Document

You'll see them if you go to the Edit->Bookmarks menu. You can bind them to a shortcut if you go to Options->Preferences->Environment->Keyboard and look them up as Edit.PreviousBookmarkInDocument and Edit.NextBookmarkInDocument.


Pending Changes

Shortcut not available with TFS

If you use TeamFoundationServer the Ctrl-W,Ctrl-G shortcut for view pending changes is|may not available.
Rebind it to ClassViewContextMenus.ClassViewProject.TfsContextViewPendingChanges


Select/Unselect All

Ctrl-A then check/uncheck


per StackOverflow



See Also




Category Tags

IDEs development