Visual Studio things that I use personally. They are here just to ensure that I don't lose them.
autoexp.dat
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\autoexp.dat
; Mozilla
nsRect=x=<x,d> y=<y,d> width=<width,d> height=<height,d>
nsIAtom=<mString,su>
nsCOMPtr<*>=<mRawPtr,x>
nsAutoString=<mData,su>
nsString=<mData,su>
nsSubstring=<mData,su>
nsAString=<mData,su>
nsCAutoString=<mData,s>
nsCString=<mData,s>
nsCSubstring=<mData,s>
nsACString=<mData,s>
; ICU
icu::UnicodeString=len=<fLength> str=<fArray,su>
icu_3_6::UnicodeString=len=<fLength> str=<fArray,su>
; Cross
cl::WideString=len=<mStr.fLength> str=<mStr.fArray,su>
See VirtualDub blog for information about Visual Studio 2005 visualizers.
Macros
- ColMove
- These macros replicate a rudimentary version of the Textpad behaviour where up/down line movements return the cursor to the column where the last edit started. This is a great feature. I would love to see it in Visual Studio.
- CommentOut
- The built-in comment out macro doesn't work. This does.
Macro bindings that I use are:
| Alt + Down | ColMoveSet |
| Alt + Up | ColMoveSet |
| Ctrl + Down | ColMoveDown |
| Ctrl + Up | ColMoveUp |
| Shift + Ctrl + C | CommentOut |
Imports EnvDTE
Imports System.Diagnostics
Public Module Personal
Public g_nLineCharOffset As Integer
Sub ColMoveSet()
Dim sel As TextSelection
sel = ActiveDocument().Selection
g_nLineCharOffset = sel.ActivePoint().LineCharOffset()
End Sub
Sub ColMoveDown()
Dim sel As TextSelection
sel = ActiveDocument().Selection
sel.MoveToLineAndOffset(sel.ActivePoint.Line(), g_nLineCharOffset)
sel.LineDown()
End Sub
Sub ColMoveUp()
Dim sel As TextSelection
sel = ActiveDocument().Selection
sel.MoveToLineAndOffset(sel.ActivePoint.Line(), g_nLineCharOffset)
sel.LineUp()
End Sub
Sub CommentOut()
Dim sel As TextSelection
sel = ActiveDocument().Selection
sel.Text = "/*" & sel.Text & "*/"
End Sub
End Module