Tuesday, July 20, 2010

Visual studio keybinding open specific file.

Made these macros to make my life easier, since most of the time i'm editing the same files.

Sub ToChickenStatic()
DTE.ItemOperations.OpenFile("e:\Chickenphotos\code\Chickenstatic.cs")
End Sub
Sub ToChickenExtends()
DTE.ItemOperations.OpenFile("e:\Chickenphotos\code\Chickenextends.cs")
End Sub

Actually I have about 8 of these, and they are bound to CTRL-1,2,3...

You can then bind the macros to keys via Tools->Customize->Keyboard
One of my more rewarding keybinds.

No comments:

Post a Comment