Open two instances of a file in a single Visual Studio session

前端 未结 15 1548
误落风尘
误落风尘 2020-12-02 03:21

I have a file, xyz.cpp. I want to open two instances of this file in Visual studio (BTW, I am using Visual Studio 2005). Why would I want to do so? I want

相关标签:
15条回答
  • 2020-12-02 04:05

    to work on a two section of a one long file simply use shortcut ( Ctrl + \ ) or click on split editor window while you are on selected Tab. the icon is on top-right of the VS Code.

    0 讨论(0)
  • 2020-12-02 04:07

    Window menu, New Horizontal/Vertical Tab Group there will do, I think.

    0 讨论(0)
  • 2020-12-02 04:14

    Open the file (if you are using multiple tab groups, make sure your file is selected).

    Menu WindowSplit (alternately, there's this tiny nub just above the editor's vertical scroll bar - grab it and drag down)

    This gives you two (horizontal) views of the same file. Beware that any edit-actions will reflect on both views.

    Once you are done, grab the splitter and drag it up all the way (or menu WindowRemove Split).

    0 讨论(0)
  • 2020-12-02 04:14

    You can use the WindowsNew Window option to duplicate the current window. See more at: Why I like Visual Studio 2010? Undock Windows

    0 讨论(0)
  • 2020-12-02 04:14

    How to open two instances of the same file side by side in Visual Studio 2019:

    1. Open the file.

    2. Click Window -> New Window.

    3. A new window should be open with the same file.

    4. Click on Window -> New Window Document Group.

    Result:

    0 讨论(0)
  • 2020-12-02 04:15

    When working with Visual Studio 2013 and VB.NET I found that you can quite easily customize the menu and add the "New Window" command - there is no need to mess with the registry!

    God only knows why Microsoft chose not to include the command for some languages...?

    0 讨论(0)
提交回复
热议问题