Visual Studio Window Manager

Is there a window manager for Visual Studio 2008 , like this one . I really liked it, and everything that I used in Visual Studio 2005 and somewhere I saw that it should work in Visual Studio 2008, but this is not so. I tried this on many installations of Visual Studio 2008, and it does not remember any settings. I really liked that I can quickly change the layout of the window. Right now I'm just manually importing and exporting settings, but this is not an instant process.

What do I need to do to make it work?

+3
source share
4 answers
+2

RW CodePlex. , Visual Studio 2008. .

+1

. WindowManager, , Visual Studio 2008, . , " " WindowManager, , , .

Sub DualMonitorConfiguration_Save()
    SaveWindowConfiguration("Dual Monitor Layout")
End Sub

Sub DualMonitorConfiguration_Load()
    LoadWindowConfiguration("Dual Monitor Layout")
End Sub

Sub LaptopOnlyConfiguration_Save()
    SaveWindowConfiguration("Laptop Only Layout")
End Sub

Sub LaptopOnlyConfiguration_Load()
    LoadWindowConfiguration("Laptop Only Layout")
End Sub

Private Sub SaveWindowConfiguration(ByVal configName As String)
    Dim selectedConfig As WindowConfiguration
    selectedConfig = FindWindowConfiguration(configName)
    If selectedConfig Is Nothing Then
        selectedConfig = DTE.WindowConfigurations.Add(configName)
    End If

    selectedConfig.Update()
    DTE.StatusBar.Text = "Window configuration saved: " & configName
End Sub

Sub LoadWindowConfiguration(ByVal configName As String)
    Dim selectedConfig As WindowConfiguration
    selectedConfig = FindWindowConfiguration(configName)
    If selectedConfig Is Nothing Then
        MsgBox("Window Configuration """ & configName & """ not found.")
    Else
        selectedConfig.Apply()
        DTE.StatusBar.Text = "Window configuration applied: " & configName
    End If
End Sub

Private Function FindWindowConfiguration(ByVal name As String) As WindowConfiguration
    Dim selectedLayout As WindowConfiguration

    For Each config As WindowConfiguration In DTE.WindowConfigurations
        If config.Name = name Then
            Return config
        End If
    Next

    Return Nothing
End Function
+1

, : -)

:

To get this done in 2008, add a new HostApplication element to the WindowManager2005.AddIn file. The file is usually located in "% AppData% \ Microsoft \ MSEnvShared \ Add-in". Change the version in the new item should be 9.0 (VS 2008), and it should work in both 2008 and 2005.

<HostApplication>
  <Name>Microsoft Visual Studio</Name>
  <Version>9.0</Version>
</HostApplication>
+1
source

Source: https://habr.com/ru/post/1697410/


All Articles