Visual Studio 2005 IDE Short Cuts

Hi Readers, I believe that as a programmer we all are from the lazy lots. We always try n find the possible shortcuts for every thing we do. Well I seem no harm in this!! we just wanna make life simpler and faster.

I have been working on the Visual Studio 2003 and Visual Studio 2005 for the development of my projects. So I thought of bringing shortcuts of this beautiful and powerful IDE to you. Huh!!! ya ya I know there are plenty you will find on net guys so what new...Most people don't know this, but there are actually over 450 keyboard shortcuts in Visual Studio by default. But there is no easy way to find out all the keyboard shortcuts inside Visual Studio.

Dear all this time I will bring a small code snippet with which you can actually produce a HTML file that will contain all the short cuts.. So here it is for all power users:

Macro to generate Keyboard Shortcuts in HTML

1. Open the Visual Studio 2005 IDE
2. Go to Tools
3. select Macros, and then choose Macros IDE (or you can also user Alt+F11). This will launch the Macros IDE.
4. Now, expand the MyMacros project, MyMacros namespace and double-click on Module1.
5. Simply copy code below to the Macros IDE and run the macro
6. After running the macro, you will get HTML file with keyboard shortcuts of Visual Studio.
7. Open your HTML file at "c:\shortcuts\VS2005_Shortcuts.html"
8. Print the file and paster on your desk.. Enjoy!!!

Note: You need not to create any new file or project just follow steps above..

*********************************************************************

Public Module Module1

Public Sub ListShortcutsInHTML()

'Declare a StreamWriter
Dim sw As System.IO.StreamWriter
Dim sno As Integer 'Serial Number in the HTML file
sno = 0 'Initialize
sw = New IO.StreamWriter("c:\\shortcuts\\VS2005_Shortcuts.html")

'Please make the Folder "shortcuts" first.

'Write the beginning HTML
WriteHTMLStart(sw)

' Add a row for each keyboard shortcut
For Each c As Command In DTE.Commands
If c.Name <> "" Then
Dim bindings As System.Array
bindings = CType(c.Bindings, System.Array)
For i As Integer = 0 To bindings.Length - 1
sno = sno + 1
sw.WriteLine("")
sw.WriteLine("" + sno.ToString + "")
sw.WriteLine("" + c.Name + "")
sw.WriteLine("" + bindings(i) + "")
sw.WriteLine("")
Next

End If
Next

'Write the end HTML
WriteHTMLEnd(sw)

'Flush and close the stream
sw.Flush()
sw.Close()
End Sub

Public Sub WriteHTMLStart(ByVal sw As System.IO.StreamWriter)
sw.WriteLine("<html>")
sw.WriteLine("<head>")
sw.WriteLine("<title>")

sw.WriteLine("Visual Studio Keyboard Shortcuts")
sw.WriteLine("</title>")
sw.WriteLine("</head>")

sw.WriteLine("<body>")
sw.WriteLine("

Visual Studio 2005 Keyboard Shortcuts

")
sw.WriteLine("Mail me at: Vipin Vij
")
sw.WriteLine("Blog Name: My Blog")
'sw.WriteLine("Blog:http://vijvipin.blogspot.com")
sw.WriteLine("<font size=""2"" face=""Verdana"">")
sw.WriteLine("<table border=""1"">")
sw.WriteLine("SNOCommandShortcut")
End Sub

Public Sub WriteHTMLEnd(ByVal sw As System.IO.StreamWriter)
sw.WriteLine("</table>")
sw.WriteLine("</font>")
sw.WriteLine("</body>")
sw.WriteLine("</html>")
End Sub

End Module

*********************************************************************

Happy Programming!!!

Comments

Yanesh Tyagi said…
This is really a good information. You can find a small list of most commonly used shortcuts here.
Anonymous said…
You have made a very nice blog. Your texts is extremely good content. It would be super with a widget like Facebook like buttom. I have integrated it on my blog and it attracts attention. The more comments the more motivated you will become in designing your next piece.
tods shoes,tods shoes sale.cheap tods shoes
Anonymous said…
You have made a very nice blog. Your texts is extremely good content. It would be super with a widget like Facebook like buttom. I have integrated it on my blog and it attracts attention. The more comments the more motivated you will become in designing your next piece.
Tiffany Jewelry,Links of London.Thomas Sabo
Anonymous said…
1000 facebook likes
buy facebook likes

http://www.arrastheme.com/forums/topic5912-how-to-remove-no-comments-and-leave-a-reply-from-aboutcontact-pages.html http://www.cdapress.com/news/business/article_980d4e52-05d9-5306-8166-02a2f912df2a.html
get facebook likes 1000 facebook likes get facebook likes
My anti virus for comodo internet security won't update. A reminder popped up saying it was out of date. So i tried to manually update it. it stops at 51% and says "failed to update the virus signature database. Please check your internet connection and try again later". not sure what it means since my internet is running just fine

facebook likes 1000 facebook likes [url=http://1000fbfans.info]facebook likes [/url] buy facebook likes

Popular posts from this blog

How does dual SIM mobile work

My First Post

Nokia 7705 Twist