在 Visual Studio 2010 中同步滚动条
VS2010有没有办法同步滚动条?例如,如果您有两个几乎相同的文件,并且您尝试使用垂直选项卡组来区分它们,是否有一个设置允许您同步两个文件中的滚动?
Is there any way to synchronize scrollbars in VS2010? For instance, if you have two files that are nearly identical and you are trying to diff them using vertical tab groups, is there a setting that will allow you to synchronize the scrolling in both?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我无法找到在 VS 中执行此操作的方法,但如果您只想进行比较,则可以随时使用 Notepad++,这是一个很棒的免费文本编辑器。获取该代码并将代码复制并粘贴到 NP++ 中的两个不同选项卡中,然后右键单击其中一个选项卡并选择“移至其他视图”。然后你应该将两者并排放置。将它们滚动到顶部,然后单击“查看 ->”同步垂直滚动”,这将使它们保持同步,您可以轻松地进行并排比较。
希望有帮助!
I couldn't work out a way to do it in VS but if all you want to do is compare you could always use Notepad++, which is an awesome free text editor. Get that and copy and paste your code into two different tabs in NP++, then right click one of the tabs and choose 'Move to Other View'. You should then have the two side by side. Scroll both of them to the top and then click 'View -> Synchronize Vertical Scrolling' and that'll keep them synched and you can do easy side by side comparisons.
Hope that helps!
同步滚动条不是 VS2010 的一部分。
在这里您可以为他们投票!< /a>
Synchronized scrollbars are not part of VS2010.
Here you can vote for them!
最好使用 WinMerge 来比较两个文件。
如果您只想使用同步滚动手动并排比较,您也可以不执行步骤 (3)。
Is better to take WinMerge to compare two files.
You also may do not do the step (3) if you just want to compare manually side by side, using synchronous scrolling.
您始终可以设置 selectedindex,然后将所有列表框的顶部设置为“效果”...
You could always set the selectedindex and then set the top on all of your listboxes for the "effect"...