Are there any tools or IDE features to allow viewing of different parts of the same file side-by-side.
是否有任何工具或IDE功能允许并排查看同一文件的不同部分。
I've often thought this would be useful for analysing and refactoring duplicated code within a file.
我经常认为这对于分析和重构文件中的重复代码很有用。
6 个解决方案
#1
notepad++ -> view -> clone to another view
记事本++ - >视图 - >克隆到另一个视图
You can even synchronize scrolling of two different positions on same file.
您甚至可以同步同一文件上两个不同位置的滚动。
#2
Any programmers editor should support this - vim certainly does.
任何程序员编辑都应该支持这个 - vim当然可以。
#4
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
多年来我一直使用Beyond Compare,这是我发现的最好的。特别是因为你有能力做差异以及只看文件。这个工具也是我在进行二进制比较时发现的最好的工具。请访问www.scootersoftware.com
#5
In VisualStudio: Window Menu, split?
在VisualStudio:窗口菜单中,拆分?
#6
notepad++ ...
its free and easy to use
它免费且易于使用
#1
notepad++ -> view -> clone to another view
记事本++ - >视图 - >克隆到另一个视图
You can even synchronize scrolling of two different positions on same file.
您甚至可以同步同一文件上两个不同位置的滚动。
#2
Any programmers editor should support this - vim certainly does.
任何程序员编辑都应该支持这个 - vim当然可以。
#3
You could also use Beyond Compare.
您也可以使用Beyond Compare。
#4
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
多年来我一直使用Beyond Compare,这是我发现的最好的。特别是因为你有能力做差异以及只看文件。这个工具也是我在进行二进制比较时发现的最好的工具。请访问www.scootersoftware.com
#5
In VisualStudio: Window Menu, split?
在VisualStudio:窗口菜单中,拆分?
#6
notepad++ ...
its free and easy to use
它免费且易于使用