EzhNotes

January 25, 2009

Optimize VS workspace by hiding tool windows

Filed under: Uncategorized — alexezh @ 10:16 pm

Simple macro toggles all tool windows

Dim showToolWindows As Integer

Public Sub MyToggleToolWindows()

If (showToolWindows = 1) Then

showToolWindows = 0

Else

showToolWindows = 1

End If

For Each window As Window In DTE.Windows

‘ Check that this is a tool window and not a document window.

If (window.Document Is Nothing) Then

‘ hide window.

Try

window.Visible = showToolWindows

Catch exception As Exception

End Try

End If

Next

End Sub

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: