9/23/09

A few Visual Studio tips

1) In VS2005, you can assign the back and forward mouse buttons to View.NavigateBackward and View.NavigateForward. In the keyboard setup, just click the desired button (back or forward) in the "Press shortcut keys" edit box in the "keyboard options". Alternately, you can just use the keyboard to make the assignment (Alt+Left Arrow) and it will work with the mouse’s back button. (Alt+Right Arrow for the mouse’s forward button).

(Note that you might have to delete the assignment if it is already assigned to something else. “Alt+Right arrow” was already assigned to the View.Forward command in my case.)

2) Microsoft Visual Studio 2005 IDE Enhancements (link):
http://www.microsoft.com/downloads/details.aspx?FamilyID=cd7c6e48-e41b-48e3-881e-a0e6e97f9534&DisplayLang=en#Instructions

3) Free add-ons for MS Visual Studio from slickedit.com:
http://www.slickedit.com/index.php?option=com_content&view=article&id=78&Itemid=90

a) Editor Gadgets - Line ruler - Places a "ruler" highlight across your current line (where the cursor is) and has tick marks to indicate the editor's indentation levels. Indentation guide - Draws a vertical bar in the editor indicating the indentation level of the current line. Auto-copy selection - Automatically copies text to the clipboard when selected with the mouse. Paste may be done by simply clicking in the editor with the middle mouse button (the scroll wheel on most mice). These behaviors are similar to XMouse.
Editor Graphic - Allows you to place a graphic inside your editor, either as a single image or as a tiled background.

b) The Command Spy - allows you to see exactly what commands you've run, how many times you've run them and what key bindings are used to invoke those commands. The main purpose of this tool is to allow you to learn what commands are bound to which keystrokes, so that you can work faster within the IDE.

c) File Explorer -provides an easy way to open solutions, projects, or single files in Visual Studio. It also makes it easy to drag-and-drop files into an open Visual Studio project.

d) The Data Object Analyzer

e) The SLOC Report - count lines of code, etc

No comments: