1

I have a single class with several long methods. I want to view one of the methods side by side so I can walk through them line by line like I was walking through a merge process.

If they were in separate classes I could just drag class window to my other monitor but I can't do that within the same class. I've been copying one of the methods out to notepad for a workaround but I miss my syntax highlighting.

Is there anyway within Visual Studio to do something like this?

  • Not sure about within same visual studio, but my idea is, instead of notepad, the file in another instance of visual studio, so you will not face issue with syntax highlighting. – Abhilash R Vankayala Jul 12 '16 at 17:29
  • 2
    Possible duplicate of [Open two instances of a file in single Visual Studio session](http://stackoverflow.com/questions/728949/open-two-instances-of-a-file-in-single-visual-studio-session) – BJ Myers Jul 12 '16 at 17:32
  • You are correct BJ Myers. I saw the post before I posted but didn't think the subject wording was what I was looking for. I was wrong. Thank you. – Residualfail Jul 12 '16 at 18:03

1 Answers1

2

In Visual studio 2013,

Open the class file. In Menu -> "Windows" -> Select "Split"

This will open the same class file in two different panes. If you edit the file, it will be reflected in both.

After you have finished comparing, Menu -> "Windows" -> Select "Remove Split"

Nagaraj Raveendran
  • 965
  • 13
  • 23
  • This is exactly what I needed. And it nudged me in the right direction to find this gem. https://blogs.msdn.microsoft.com/zainnab/2011/03/01/split-code-windows-vertically/ – Residualfail Jul 12 '16 at 17:59