How do I compare two files using Eclipse? Is there any option provided by Eclipse?

前端 未结 5 1565
别跟我提以往
别跟我提以往 2020-12-12 10:49

How do I compare two files using Eclipse?

(Currently I am using WinMerge.)

相关标签:
5条回答
  • 2020-12-12 11:17

    If your compairing javascript you might find it not displaying.

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=509820

    Here is a workround...

    • Window > Preferences > Compare/Patch > General Tab
    • Deselect checkbox next to "Open structure compare automatically"
    0 讨论(0)
  • 2020-12-12 11:24

    If one or both of the files you wish to compare isn't in an Eclipse project:

    1. Open the Quick Access search box

      • Linux/Windows: Ctrl+3
      • Mac: ⌘+3
    2. Type compare and select Compare With Other Resource

    3. Select the files to compare → OK

    You can also create a keyboard shortcut for Compare With Other Resource by going to WindowPreferencesGeneralKeys

    0 讨论(0)
  • 2020-12-12 11:34

    Just select all of the files you want to compare, then open the context menu (Right-Click on the file) and choose Compare With, Then select each other..

    0 讨论(0)
  • 2020-12-12 11:43

    To compare two files in Eclipse, first select them in the Project Explorer / Package Explorer / Navigator with control-click. Now right-click on one of the files, and the following context menu will appear. Select Compare With / Each Other.

    enter image description here

    0 讨论(0)
  • 2020-12-12 11:43

    Other than using the Navigator/Proj Explorer and choosing files and doing 'Compare With'->'Each other'... I prefer opening both files in Eclipse and using 'Compare With'->'Opened Editor'->(pick the opened tab)... You can get this feature via the AnyEdit eclipse plugin located here (you can use Install Software via Eclipse->Help->Install New Software screen): http://andrei.gmxhome.de/eclipse/

    0 讨论(0)
提交回复
热议问题