views:

96

answers:

6

Are there any tools or IDE features to allow viewing of different parts of the same file side-by-side.

I've often thought this would be useful for analysing and refactoring duplicated code within a file.

A: 

In VisualStudio: Window Menu, split?

Sergio
I've tried that - it doesn't seem to let you display the same file in two panes though.
mdresser
+2  A: 

You could also use Beyond Compare.

Andrew Jahn
+3  A: 

Any programmers editor should support this - vim certainly does.

anon
Even my little tiny one. xacc.ide does that!
leppie
A: 
Enjoy coding
+2  A: 

notepad++ -> view -> clone to another view

You can even synchronize scrolling of two different positions on same file.

Excellent, it's free. That'll do nicely!
mdresser
+1  A: 

I've used Beyond Compare for years and it is the best that I have found. Especially since you have the ability to do diffs as well as just look at the files. This tool is also the best that I have found for doing binary comparisons. Look at www.scootersoftware.com

Mark