{"id":709,"date":"2010-01-08T16:21:24","date_gmt":"2010-01-08T16:21:24","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=709"},"modified":"2011-11-17T13:42:33","modified_gmt":"2011-11-17T13:42:33","slug":"comparing-files-in-eclipse","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=709","title":{"rendered":"Comparing files in Eclipse"},"content":{"rendered":"<p>Eclipse can compare\u00a0 a pair of open files. It is not obvious how to do this however.<\/p>\n<p>All you need to do is select the first file in the project\/package explorer, then ctrl\/select the second file so that both are selected. If you then right click, you can select <strong>Compare To\/Each Other<\/strong> and a new differences view is created.<\/p>\n<p>You can also select a single file, and compare to another version in CVS by selecting <strong>Compare To\/Another Branch or Version<\/strong><\/p>\n<p><strong><a title=\"http:\/\/jmesnil.net\/weblog\/2004\/10\/07\/using-eclipse-to-compare-two-files\/\" href=\"http:\/\/jmesnil.net\/weblog\/2004\/10\/07\/using-eclipse-to-compare-two-files\/\">This post<\/a><\/strong> also discusses the technique.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eclipse can compare\u00a0 a pair of open files. It is not obvious how to do this however. All you need to do is select the first file in the project\/package explorer, then ctrl\/select the second file so that both are selected. If you then right click, you can select Compare To\/Each Other and a new [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[9,16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/709"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=709"}],"version-history":[{"count":4,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":1597,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions\/1597"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}