none
Opening Windows Style

    Question

  • When I double click on an item in the solution explorer, I would like it to open as a floating window instead of a docked window.  How do I do this?

    Is there IDE command line switch to tell the IDE which saved window layout to use upon start up?



    • Edited by SezMe Saturday, February 18, 2017 7:10 PM
    Saturday, February 18, 2017 7:09 PM

Answers

  • Hi,

    AFAIK there is no built-in way to open the document of a file of the Solution Explorer as a floating window since files contain code and the most appropriate window type is document (tabbed). You try to built or find an extension that detects when a document window is opened in tabbed mode and switch it to floating mode.

    The Window menu has commands to save layouts/apply layouts. The IDE command line can receive a command:

    https://msdn.microsoft.com/en-us/library/19sf6kk3.aspx

    and commands are named Window.ApplyWindowLayoutN

    So use:

    devenv.exe /Command "Window.ApplyWindowLayoutN"

    where <N> is a number 1..10 with the desired layout.


    My portal and blog about VSX: http://www.visualstudioextensibility.com<br/> Twitter: https://twitter.com/VSExtensibility<br/> MZ-Tools productivity extension for Visual Studio: https://www.mztools.com

    • Proposed as answer by Carlos J. QuinteroMVP Sunday, February 19, 2017 10:40 AM
    • Marked as answer by SezMe Monday, February 20, 2017 8:47 PM
    Sunday, February 19, 2017 10:40 AM

All replies

  • Hi,

    AFAIK there is no built-in way to open the document of a file of the Solution Explorer as a floating window since files contain code and the most appropriate window type is document (tabbed). You try to built or find an extension that detects when a document window is opened in tabbed mode and switch it to floating mode.

    The Window menu has commands to save layouts/apply layouts. The IDE command line can receive a command:

    https://msdn.microsoft.com/en-us/library/19sf6kk3.aspx

    and commands are named Window.ApplyWindowLayoutN

    So use:

    devenv.exe /Command "Window.ApplyWindowLayoutN"

    where <N> is a number 1..10 with the desired layout.


    My portal and blog about VSX: http://www.visualstudioextensibility.com<br/> Twitter: https://twitter.com/VSExtensibility<br/> MZ-Tools productivity extension for Visual Studio: https://www.mztools.com

    • Proposed as answer by Carlos J. QuinteroMVP Sunday, February 19, 2017 10:40 AM
    • Marked as answer by SezMe Monday, February 20, 2017 8:47 PM
    Sunday, February 19, 2017 10:40 AM
  • I have marked this as the answer because the information about invoking layouts is useful.

    However, I don't understand the first sentence.  In my style, I have the IDE window very small in the upper left hand corner of my screen and change all windows to floating upon opening them from the Solution Explorer.  Thus, I don't know why tabbed windows are the most "appropriate".  I do this so I can see and use non-IDE windows while having the IDE open.

    It's too bad floating windows are not an configurable option.  Maybe I'll suggest that to Microsoft.

    Monday, February 20, 2017 8:54 PM