Welcome to MSDN Blogs Sign in | Join | Help

James @ MS

Personal adventures in the world of technology...
VS 2005 IDE Tips and Tricks

As some of you may know, I used to work in the Visual Studio IDE team before I joined the Ecosystem team. While I was there, I worked on various IDE features such as Visual Studio settings, Window Management, Command/Menus, Toolbox, Task List/Error List, Customer Experience Improvement program, etc. I gave a talk in the MVP Summit in Singapore in 2005 on VS 2005 IDE Tips and Tricks. After the conference, I converted much of the content into a technical paper.

 It's been over year, but this is finally published on MSDN. If you want to get some tips on how to be more productive with VS 2005, check it out.

 http://msdn2.microsoft.com/en-us/library/bb245788(VS.80).aspx

 Please let me know if this is useful or if you have any other feedback!

thanks,
James

Posted: Thursday, January 04, 2007 6:41 PM by jameslau-MS
Filed under: ,

Comments

Adrian Brown said:

Thanks for the link, and the article!

I've been using VS for a while, but still found it useful - in particular, the section on custom snippets.

Cheers!

# January 4, 2007 11:06 PM

swaroop said:

When i create a Project using VS2005, by default a folder with the namespace gets created.

for e.g.

When i create a project with name Test.Test1.Test2.csproj and namespaceTest.Test1.Test2  under C:\MyProjects\

A folder with name Test.Test1.Test2 gets created, How can i avoid this ?

i want to create the project as C:\MyProjects\Test\Test.Test1.Test2.csproj

Any pointers would be great.

# January 16, 2007 9:49 PM

Dragan Panjkov said:

James, do you have complete and functional version of that macro?

# January 22, 2007 6:16 PM

jameslau-MS said:

Hey Dragon,

The macro got posted with missing code. The complete code is below:

Public Module Module1

   Public Sub ListShortcutsInHTML()

       'Declare a StreamWriter

       Dim sw As System.IO.StreamWriter

       sw = New StreamWriter("c:\\demo\\Shortcuts.html")

       '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

                   sw.WriteLine("<tr>")

                   sw.WriteLine("<td>" + c.Name + "</td>")

                   sw.WriteLine("<td>" + bindings(i) + "</td>")

                   sw.WriteLine("</tr>")

               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("<h1>Visual Studio 2005 Keyboard Shortcuts</h1>")

       sw.WriteLine("<font size=""2"" face=""Verdana"">")

       sw.WriteLine("<table border=""1"">")

       sw.WriteLine("<tr BGCOLOR=""#018FFF""><td align=""center""><b>Command</b></td><td align=""center""><b>Shortcut</b></td></tr>")

   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

thanks,

James

# January 22, 2007 6:26 PM

Dragan Panjkov said:

Thanks, James...

I concluded that code is incomplete, but ...

Thanks for complete macro!

# January 22, 2007 6:49 PM

vs.Eco said:

Since I posted my IDE Tips and Tricks blog entry , I have been getting a lot of emails from customers.

# February 21, 2007 2:16 PM
New Comments to this post are disabled
Page view tracker