Notes

Wikipedia:Microsoft_Visual_Studio
Wiki: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

 

 

Plugins and extensions

General List

 

 

Resharper

http://www.jetbrains.com/resharper/
Keyboard Shortcuts
4.0 default keymap (pdf)

 

 

Build Events

MSDN: How to Specify Build Events (C#)
DotNetPearls:post-pre-build-macros
Post-bujild events to copy DLLs
Use Visual Studio’s Post-Build Events to Automate Unit Testing Running
SO:postbuild-event+visual-studio
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 Assembly Info?.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("1.0.0.0")]
    [assembly: AssemblyFileVersion("1.0.0.0")]

 

 

to

 

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

 

 

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.

 

Shortcuts

lists of default shortcuts

http://www.shortcutworld.com/en/win/Visual-Studio_2010.html

 

(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.

 

 

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

 

 

See Also

Programming.SharpDevelop?

 

 

Category Tags

IDEs development