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

前端 未结 15 1578
误落风尘
误落风尘 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:02

    I came up with a hack that might produce the result intended in the original answer.

    If you have the file you want in two windows in a source control, you can right-click on the file and select compare, you can compare the

    If you do compare you will have a new window Called diff, showing you the contents of you file.

    This is of course not ideal as the diff window will have the diff colors polluting the text. Note: you can compare the file you want to open to and empty file, and then you will have the window in a very ugly green background.

    This is not perfect, it is a hack, but it was the only way I found to really have the same file in two windows.

提交回复
热议问题