����(Diff) ��

 

IDEA �� ����� ����, ���� ������ �ؽ�Ʈ�� ���ϱ� ���� ����� �� �ִ� ������ ��(diff)����� �����մϴ�.  

�� ������ ����� �� �� �ִ� ���� ������ �� ����� ���� ���� ��Ҹ� ����ϰ�, ���� ���ȿ� �����Ͽ� ��ũ�� �����մϴ�.

����� ������ �� ������ ���� �� �ֽ��ϴ�:

*   ���͸� ï¿½ï¿½ ���Ͻʽÿ�

*   ���� �����丮 ï¿½ï¿½ï¿½ï¿½ ���� ������ ������ ���Ͻʽÿ�

*   �����  ï¿½ï¿½ï¿½ï¿½ ���� �������丮 ï¿½ï¿½ï¿½ï¿½ local file�� ������ ������ ���Ͻʽÿ�

*   ������ ï¿½ï¿½ï¿½ï¿½ � local file ï¿½ï¿½ ������ ���ϰ� ���Ͻʽÿ�

*   � 2���� local file ï¿½ï¿½ ���� ���Ͻʽÿ�:  text  �Ǵ� binary

*   �������� selected text�� Ŭ������ ����Ʈ ï¿½ï¿½ ���Ͻʽÿ�

*   class/class member�� class/class member ï¿½ï¿½ ���Ͻʽÿ�.

Difference Viewer UI  


����� �����ϴ� ���� Ÿ�Կ� �������, Difference Viewer ï¿½ï¿½ ���������� ���� ���Դϴ�.

���� �����丮 ï¿½ï¿½ ���� �Ϻ� �ñ±³´ï¿½ � ����� ���� �⺻ �� �߰������� �𸨴ϴ�.  

�׷� ���̴� ���� ���� ���ȿ� ���Ե˴ϴ�.  ï¿½ï¿½ï¿½ï¿½ �׸��� Difference Viewer ï¿½ï¿½ �ֿ� ��� �����մϴ�:



Difference Viewer Toolbar: 

Icon 

Function 

Description 

Copy  

���õ� �ؽ�Ʈ�� ���ۿ� ī���մϴ�

Find  

 ï¿½Ø½ï¿½Æ® � ï¿½ï¿½ï¿½Ì¾ï¿½Î±×¸ï¿½ �θ��ϴ�.

Move to  the previous difference  

���� � ���̶� �߰ߵǰ� ij���� ù��° ����(��ư�� ��� ����)�� ������,

�װ��� ���� ���� �ִ� �Ϳ� �ռ� ������ ������ ij���� ��� �ű�ϴ�.

Move to  the next difference  

���� � ���̰� �߰ߵǰ�, ij���� ���� ����(��, ��ư�� ��� ����)�� ������,

ij���� ���� ���� �ִ� �� �Ŀ� ��� ���������� �ű�ϴ�.

Ignore Whitespace 

�񱳰� �񱳵� ���� ���̿��� ���鿡 �ִ� ���̸� ǥ���ؾ߸� �ϴ����� �����մϴ�.

*   Do not ignore: ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ ��� ���̰� �������ϴ�

*   Leading and Trailing:  ���� ���� ������ �̲���, ������ ���� ������� ���� ���� ��Ÿ���ϴ�

*   All:  ������ ��� ���̴� ���õ˴ϴ�


Text Views 
���� ���� �񱳵� ������ ������ ����Ʈ�� ǥ���ϴ� 2���� �г��� ���� �����ϴ�:

*   �������� ��� ������ ���� ���� ������ ǥ���մϴ�

*   ������ ��� ������ ���� ���Ͽ� �ñ±³µï¿½ ���� ���Դϴ�.

���� ���õ� �ؽ�Ʈ�� Ŭ������ ����Ʈ�� ���ϸ�, ���� ������ �����ʰ� ���� ���� Ŭ������ ����Ʈ�� ��Ÿ���ϴ�.
����� ���ϰ� �ִ� �Ϳ� ���� ���ʰ� �������� �ؽ�Ʈ ������ ���̺����� �پ��մϴ�.  

���� ���, ���� ���� ������ ���� ���� �������丮�� ���ϸ�, ����� ���õ� �ؽ�Ʈ�� Ŭ������ ����Ʈ�� ���ϴ� �ͺ��� �ٸ��� ���̺� �˴ϴ�.

�Ϻ� ����(���� �����丮 �Ǵ� ���� ������ ��� ���̶�)�� ���Ͽ� ���� ������ ���� ��,

���� ����(�� �ҽ�)�� �б� �����̰� ������ ����(���� ����)�� ������ �� �ֽ��ϴ�.  ï¿½ï¿½ ���� ���� ������ ���� ��, ���� �¿� ���� ���� �����մϴ�.

��ǻ� ���� ������ �ؽ�Ʈ ����� �����Ϸ� ����, ������ ����� ǥ���ϴ� ��Ŀ ���� �����ϴ� Editor�� ���Դϴ�.  

���� ����, ��Ŀ �ٵ� difference markers (���� ï¿½×¸ï¿½ï¿½ï¿½ �Ʒ� ������)�� ǥ���մϴ�.  

����� ���� ��Ŀ�� Ŭ���� �� �ؽ�Ʈ ����� ��Ŀ�� ���� ǥ�õ� ���̿� �����մϴ�.

 ï¿½ï¿½ï¿½ï¿½ ��Ŀ�� ������ �ؽ�Ʈ ������ �������� ��Ÿ���ϴ�. �׸��� ����� ���� �׵��� ���̸� �׺����Ʈ�ϱ� ���� �̿��� �� �ֽ��ϴ�.

Apply Change  ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½
���̰� ���۵Ǵ� ���� ���� Ȩ�뿡 ��Ÿ���ϴ�.  ï¿½ï¿½ï¿½ï¿½(����, ����, ����)�� Ÿ�Կ� ����, �������� ������ ���� ������ �������� Ŭ���ϴ� ����

�� ���� ���� �� ���� ������ ���Դϴ�:

*   Ÿ�� ���Ϸ� ���̸� �����Ͻʽÿ�

*   ������ �ؽ�Ʈ�� �Բ� ǥ������ �ؽ�Ʈ�� ��ü�Ͻʽÿ�

   

�������� ����Ű�� ���� ������ ������ �߻��մϴ�.
 Remove �������� ������ �ؽ�Ʈ�� �ٸ� ���Ͽ��� ���Ե� � ��ҵ� ���� ������ �ؽ�Ʈ�� �ִ� ������ Ȩ�뿡�� ��Ÿ���ϴ�.



Status Legend: 

���� ��� �Ʒ��� �� �ٴ� �߰ߵ� ������ ���� ���Ǵ� �÷� ��Ŵ�� �����ְ� �ִ� ������ ī��Ʈ�� �߰ߵ� ������ ���¸� ǥ���ϴ� ���� �����ݴϴ�.  

���� ��Ŀ�� �ؽ�Ʈ�� ���̰� ������, �����̳� �������� �� ������ �����˴ϴ�.  ï¿½ï¿½ï¿½ï¿½ ï¿½×¸ï¿½ï¿½ï¿½ ���� �׵��� �ǹ̸� ǥ���մϴ�.


 

��(diff) ���۷��̼�


�� ������ IDEA���� ����� �� �� �ִ� ���� ���� ������ �� ���꿡 ���� ������ �����մϴ�.  

�� Ÿ���� ������ ���ǰ�, ���� �����ϸ� ���õ� ���� ���ȿ��� �� �̻��� ������ ����Ǿ����ϴ�.


Comparing directories: 

����� Local History ï¿½ï¿½ï¿½ï¿½ ������ ������ ���Ͽ� ��ü ���͸��� ����Ʈ�� ���� �� �ֽ��ϴ�.  

����� ��� �ֱ��� Ȱ�� �Ǵ� ����� ���� �� �� �ֽ��ϴ�.  ï¿½ï¿½ï¿½ï¿½ �������� �����丮: ���͸� �����丮 ï¿½ï¿½ ���ʽÿ�.
IDEA
�� ������ ���͸��� �ñ±³¸ï¿½ ���� �������� �ʽ��ϴ�.  ï¿½×·ï¿½ï¿½ï¿½, ���� ����� �װ��� �ϴ� ��ƿ��Ƽ�� ������ ������,

����� �ɼ��� �� ������ ����Ʈ�Ͽ� ������ �� �ְ�, �� ���� �װ��� IDEA �ȿ��� ���͸��� ���ϱ� ���� ȣ���� �� �ֽ��ϴ�.

����� �ܺ� diff ������ �¾��ϱ� ���ؼ�:

*         �� �޴�����  File Settings: IDE: General: Diff options�� �����Ͻʽÿ�.

*         Use external tool to compare folders�ڽ��� üũ�Ͻʽÿ�.

*         �װ� �Ʒ��� ellipsis ��ư�� Ŭ���ϰ�, �ܺ� ������ ���� ���� ���Ͽ� ��θ� �����մϴ�.

*         OK�� ���� ���̾�α׸� �ݱ� ���� OKŬ���Ͻʽÿ�.

����� �ܺ� ������ ������ �Ŀ�:

*         ������Ʈ �� ������� ���� ������Ʈ ���⸦ �����մϴ�.

*         �ܺ� diff ������ ����Ͽ� ����� ���ϱ⸦ ���ϴ� 2���� ���͸��� �����մϴ�.

*         ���� �޴��� ȣ���ϰ�, Compare two directories�� �����մϴ�.


�ܺ� diff ������ ���õ� ���͸��� ������ ���̰�, ���� ���Դϴ�.

CVS ���� ���� ������ Ŀ�� ������Ʈ ���۷��̼ǰ� �����Ͽ� ���ð� ���� ���͸��� �� ���⸦ �����մϴ�.  

�װ��� ���⿡�� ����� "diff" ��ɰ� ���� �ʽ��ϴ�.  

���� ���� ������ Version Control:  CVS Integration: Project-specific Operations: Commit�� ���ʽÿ�.



Comparing a local file to a Local History version

���� �����丮 
Ư¡�� ���� ���Ͽ� ������ �����丮�� �����մϴ�.  

����� ���� �����丮�� �鿡�� ������ � �����̶� ������ ������ ���� ������ ���� �� �ֽ��ϴ�.  

���� �������� �����丮: ���� �����丮 ï¿½ï¿½ ���ʽÿ�.



Comparing a local file to a VCS repository

������Ʈ�� ���õ� ���� ���� ���(VCS) �������丮���� ����� ������ ������ �Բ� ������ ���� ���� ������ ���� �� �ֽ��ϴ�.

����� VCS�� ���� ������ ���� �޴� �׸����κ��� ���õ� VCS(CVS, StarTeam ��)�� ���� �ֿ��� �޴� �׸����κ���

�׸��� ������ ǥ���ϴ� � �� ������ ���� VCS�� ���� ���� ���� �޴� �׸����κ��� �񱳸� ȣ���� �� �ֽ��ϴ�.

 ï¿½ï¿½ï¿½ï¿½Þ´ï¿½ ������ �ؽ�Ʈ�� ���õ� VCS�� ���� �پ�������,  ï¿½×·ï¿½ï¿½ï¿½ "Compare with"��� �ܾ�� �Բ� �׻� ���۵˴ϴ�.

���� ���� ���տ� ���� �� ���� ������ ���� ï¿½ï¿½ï¿½ï¿½ ���� ï¿½ï¿½ ���� ����� ����ϴ� �ý��ۿ� ���� ��θ� �����Ͻʽÿ�.



Comparing a local file to current Editor file
����� �����Ϳ��� ������ ���ϰ� �Բ� ����� ������Ʈ���� � �����̶� ���� �� �ֽ��ϴ�.  

�� �񱳸� ����� ���ؼ�:

*         �����Ϳ��� ���� ���⸦ �����Ͻʽÿ�.

*         ������Ʈ ����(������Ʈ �� ������)�Ǵ� ���ɾ� �����ڷ� ����, ����� �����ͷ� �ñ±³µÇ±â¸¦ �ٶ�� ������ �����մϴ�.

*         ���� �޴��� ȣ���ϰ�, Compare File with Editor�� �����մϴ�.



Comparing 2 local files of a recognized type

����� IDEA�� ���� �νĵ� Ÿ���� � �� ���� �����̶� ���� �� �ֽ��ϴ�.  

����� ������Ʈ ����(������Ʈ �� ������)�Ǵ� ���ɾ� �����ڿ��� �� ���� ������ �����ؾ߸� �մϴ�.


2
���� ������ ���ϱ� ����:

*         Project View �Ǵ� Commander�߿��� ���� ������ �����Ͻʽÿ�

*         �� ��° ���õ� ���� ������, ���� �޴��� ȣ���ϰ� Compare Two Files�� �����Ͻʽÿ�.


�񱳸� ���� ������ ������ �� ����ϰ� �ִ� ������ �� ���� ����Ʈ�� ���⿡ �ֽ��ϴ�:

o    ����� ������Ʈ ���⿡�� ������ ������ ��, ������ ���� �� ��Ÿ���ϴ�.

o    ���� ����� ���ɾ� �����ڿ��Լ� ������ �����ϸ�, highlighted file�� ���� �� left-hand �ؽ�Ʈ �信 ��Ÿ���ϴ�.



Comparing local 2 binary or other unrecognized files: 
It is possible to compare files that IDEA does not recognize as editable. 

They show up in content views but cannot be edited in IDEA. 

Files can be binary or text, but if you compare two unrecognized files,

IDEA treats them as binary and compares the bits. 

If the files are identical, the dialog shown below, left appears. If the files differ, the dialog shown below, right appears. 
���� �������� IDEA�� ����� �ʴ� ������ ���ϴ� ���� �����մϴ�.  ï¿½×µï¿½ï¿½ï¿½ ����Ʈ ��⿡�� ��Ÿ������ IDEA���� ������ �� �����ϴ�.  

������ ���̳ʸ� �Ǵ� �ؽ�Ʈ�� �� ������ ���� ����� 2���� �ν��ϰ� ���� ���� ������ ���ϸ�, IDEA�� �׵��� ���̳ʸ��� �����ϰ�, ��Ʈ�� ���մϴ�.  

���� ������ �����ϸ�, �Ʒ��� ������ ������ ���̾�αװ� ��Ÿ���ϴ����� ������ �ٸ���, �Ʒ��� ������ �������� ���̾�αװ� ��Ÿ���ϴ�

   



Comparing selected text with Clipboard contents: 

����� Ŭ������ ������ ����� � �ؽ�Ʈ�� �����Ϳ��� ���õ� �ؽ�Ʈ�� ������ ���� �� �ֽ��ϴ�.  

�� �񱳸� ����� ���ؼ�:

*         ����� Ŭ������� ���ϰ� �;��ϴ� �ؽ�Ʈ�� �����Ͻʽÿ�

*         ����� �����Ϳ��� ����� ���ϱ⸦ ���ϴ� �ؽ�Ʈ�� �����Ͻʽÿ�

*         ������ ���� �޴� ������ Compare with clipboard�� �����Ͻʽÿ�

���� �� ���� �ؽ�Ʈ�� �����ϸ� ����� �Ʒ� �Ͱ� ������ ���̾�α׸� �� ���Դϴ��׷��� ������  ï¿½ï¿½ï¿½ï¿½ ��� ï¿½ï¿½ �ؽ�Ʈ���� ���̸� ǥ���ϴ� �Ϳ� ������ ���Դϴ�.



Comparing a class/class member with a class/class member: 

����� Ŭ���� �Ǵ� Ŭ���� ����� Project View, Commander ï¿½Ç´ï¿½ Structure View ï¿½ï¿½ï¿½ï¿½Ï¿ï¿½ �� �ٸ� Ŭ����/Ŭ���� ����� ���� �� �ֽ��ϴ�.

�� �񱳸� ����� ���ؼ�:

*         �ñ±³µï¿½ ���� �׸��� �����Ͻʽÿ�

*         �� ��° ���õ� �׸� ������, ���� �޴��� ȣ���ϰ� �����ϴ� �޴� �׸��� �����Ͻʽÿ�, �� Compare Two Methods  , Compare Field with Method ï¿½ï¿½

 


�鷹�� Ŭ������ �ñ±³´ï¿½ ��ü Java ������ ����ϰ� �Ǵ� �� �Դϴ�.  ï¿½×°Íµï¿½ï¿½ï¿½ �� ���⿡�� �������� ������ �� ��Ŀ������ ����� ������ ���ϴ� ���� �����ϰ� �մϴ�.