development

Eclipse를 사용하여 두 파일을 어떻게 비교합니까?

big-blog 2020. 5. 6. 21:55
반응형

Eclipse를 사용하여 두 파일을 어떻게 비교합니까? Eclipse에서 제공하는 옵션이 있습니까?


Eclipse를 사용하여 두 파일을 어떻게 비교합니까?

(현재 WinMerge를 사용하고 있습니다.)


Eclipse에서 두 파일을 비교하려면 먼저 프로젝트 탐색기 / 패키지 탐색기 / 네비게이터 에서 제어 클릭으로 파일을 선택 하십시오. 이제 파일 중 하나를 마우스 오른쪽 버튼으로 클릭하면 다음 컨텍스트 메뉴가 나타납니다. 서로 비교 / 서로를 선택합니다 .

여기에 이미지 설명을 입력하십시오


비교하려는 모든 파일을 선택한 다음 상황에 맞는 메뉴 (파일을 마우스 오른쪽 버튼으로 클릭)를 열고 비교 대상을 선택한 다음 서로를 선택하십시오.


비교하려는 파일 중 하나 또는 둘 다가 Eclipse 프로젝트에없는 경우 :

  1. 빠른 액세스 검색 창을 엽니 다.

    • Linux / Windows : Ctrl + 3
    • 맥 : ⌘ + 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


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/


비교하는 자바 스크립트가 표시되지 않을 수 있습니다.

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

해결 방법은 다음과 같습니다.

  • 창> 환경 설정> 비교 / 패치> 일반 탭
  • "구조 열기 자동 비교"옆의 확인란 선택을 취소하십시오.

참고 : https://stackoverflow.com/questions/4623564/how-do-i-compare-two-files-using-eclipse-is-there-any-option-provided-by-eclips

반응형