How to switch the order of files (original and modified) in Eclipse Compare window?

╄→гoц情女王★ 提交于 2019-12-08 14:39:55

问题


When comparing two files, for example during a commit, Eclipse shows the original version on the right and modified on the left:

However, I would prefer to see the original version on the left and modified on the right. Is it possible?


回答1:


Eclipse Neon.2 (4.6.2) has a button to swap the views:




回答2:


I think it's just depending of which file you're selecting first. I mean, choose a file, and select compare to .. and choose another one. Next choose the second one and compare to the first one, they'll swap in your window :)




回答3:


This behaviour is influenced by what exactly is compared. When comparing two local files the view is influenced by the first & second selection. If using e.g. GIT the left hand side will always be what is present locally, the currently checked-out branch or local changes - so changing the branch will influence the view. When using SVN it is mostly the same, so left hand locally, right hand remotly.



来源:https://stackoverflow.com/questions/9340782/how-to-switch-the-order-of-files-original-and-modified-in-eclipse-compare-wind

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!