�ڵ带 ���� ���� ��� ���� �Ǽ��� �մϴ�. ��κ��� IDE�� �ܼ��� �� ����� �����ϰ� ��� �ڽ��� ������ �ϵ��� �������Ӵϴ�. ����� �� ���� �ᱹ �߰��� ��, ����� �߸��� ���� �߰��ϱ� ���ؼ� �������ؾ߸� �ϰ� �׶� ����� ������ �ߴ°�, ��� �ߴ°�, ��� ��ġ�°��� �����ϱ� ���� ����� ������ �ؾ� �մϴ�.
����� ���� ���� �з� �Ͽ��� ������ �ַ���� �ڵ�È�ϰ� ���� �� �ݸ鿡 IDEA�� �Ǽ��� �Ͼ ���̶�� ���� �����մϴ�.
�׷��� � ������ ��ſ� ���� �װ͵��� ó���ϴ� ���� �����ϱ� ���ؼ� ����Ǿ� �ְ� ����� ����ų� INTENDED �ϴ� ���� �����Ϸ��� �մϴ�. �� ���� ���α׷��� ��Ʈ�ʿ� �����ϰ�, �׵��� �߻��ϴ� �Ϳ� ���� IDEA �� ����� ���� �ڵ带 �����ϰ�, �׵��� ����Ű�� ������ �÷��� �Ϸ��� �մϴ�. �Դٰ�, �װ��� ������ �ذ��ϴ� �ϳ� �̻��� �޼ҵ带 �����մϴ�. ���� ����� ���ȵ� �ַ�ǿ� �����ϸ�, IDEA�� ���� Ű ��Ʈ��ũ �Ǵ� Ŭ�� �� ������ �ذ��մϴ�. ���� ���ȵ� �ذ��� ����� �ʿ�� �ϴ� ���� �ƴϸ�, ����� �ּ��� ������ ���� �� �˰� �ְ�, �װ��� ��� �ڽ��� ������ �� �ֽ��ϴ�. �ٲپ� ���ϸ�, IDEA�� ����� �ڵ忡�� Ʋ�� �����ΰ� �ִ� ��� ������ ��, �װ��� �װ��� �ذ��� ACTION�� �����մϴ�. �� Ư¡�� Intention Actions�̶�� �Ҹ��ϴ�. �װ��� �Ǽ��� �߰��ϰ� �ذ��� �Ӹ� �ƴ϶� ������� �Ͽ��� �װ͵��� ����DZ� ���� ���ο� ���� ����Ͽ� ���������ν� �ڵ��� ������ �� �� �ֽ��ϴ�. �̰��� ����� ��� ���� �� �ִ� �� �� ���� ���ڽ��ϴ�.
���� �ڵ带 ���� �����̶��, ����� ���ο� �ʵ尡 �ʿ��ϴٴ� ���� �߰��մϴ�. ����������, ����� Ŭ���� ������ ��ũ�� �� �� ���̰� ���ο� �ʵ带 �����ϰ� �Ʒ��� ��ũ�� �� �ϰ� �װ��� ����ϱ� �����մϴ�. ����� ���ο� ��ȣ�� �� �ݴ��� ���� �Ǵ� ����� �ܰ谡 ��������� �𸣰�, ��ű��� ����� ������ ������ ï¿½ï¿½ï¿½Ï¸é¼ ï¿½×°ï¿½ï¿½ï¿½ �����ϴ� ���� �ؾ� �����ϴ�. � ��쿡, �װ��� ��ȿ�����Դϴ�. IDEA �� �Բ� ����� ���� ù ��°�� �װ��� ï¿½ï¿½ï¿½ï¿½ï¿½Ï¸é¼ ï¿½ï¿½ï¿½Î¿ï¿½ �ʵ带 ����ϴ� ���� ������ �� �ֽ��ϴ�. �װ��� ���� ������� �ʱ� ������ �̸��� highlighted
as an error �� �� �Դϴ�. ���� ij���� �̸����� �ű�ʽÿ�.
IDEA�� ������ ���ο� ï¿½é¿ ï¿½ï¿½ï¿½ï¿½ ��ȣ�� ǥ���� ���Դϴ�. Intention Action Ư¡�� ������ �� ��� ����� ���� �����ϴ� �װ��� ��ſ��� ��ȣ�� �� �Դϴ�.

���� Alt + Enter (�Ǵ� ï¿½é¿ ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ Ŭ���߽��ϴ�)�� �����ʽÿ�. �׷��� IDEA�� �װ��� �� ������ �Բ� �ڵ带 �Ƚ��ϱ� ���� ������ �� �ִ� ���ȵ� ������ ����� �˾� �մϴ�.

�� ���, IDEA�� ������ �� ���� ������ �����մϴ�: �ʵ�, ���� ���� �Ǵ� �� ������ �����Ͻʽÿ�. �׷��� ������ ������ �̸��� �ٲٽʽÿ�. ���� ���ȵ� �ַ���� �����ϸ�(�� ���, �ʵ带 �����ϸé¼), Enter (�Ǵ� �˾����� �׸��� Ŭ��)�� �����ʽÿ�.
IDEA�� �� ���� ������ ���ο� ���ο� �ʵ� ������ ������ ���Դϴ�(����� �װͿ� ��ũ�� �� �ʿ�� �����ϴ�), ���� �� Ÿ���� �����Ϸ��� �õ��� �� �Դϴ�. ���� ������ ��� �͵� ����� ������ ������ ���ϴ��� �ݿ����� ������, �˾��� �����ϱ� ���� Escape�� �����ʽÿ�. ����� �����ϵ��� ����� �� ���� �ڵ带 �Ƚ��ϴ� ���� ����� �� �ֽ��ϴ�.

|
���� ���� ��� �Ǵ� �Ӽ��� ���� GUI �����̳����� ������ �����μ� Intention Action�� ��Ÿ���ϴ�.
|
Intention
Action�� �Ұ����ϰ� �ϴ� ��
|
���� ����� ����ġ Off�� �� �ִ� �װ� ���� ij���� ���� ������ Ư���� ǥ�� �� �Ǵ� ������Ʈ��Ʈ�� ���� ������Ʈ���� ��Ÿ���� intention action�� �ʿ����� ������, ��� ���ȵ� Intention Action�� �������� ���� ��ȣ�� �����ϴ�. �ٷ� �װ��� Ŭ���Ͻʽÿ�. ���� ��ȣ�� ȸ������ �� ���Դϴ�. �׸��� �� ������ �ٽô� ��Ÿ���� ���� ���Դϴ�. �׷���, ���� ������ �� ���� ������ ������ ����� �׵� ����� ����ġ�� ���߸� �մϴ�.

�׸��� ���� ����� � Intention
Action�� �� ǥ�����̳� ������Ʈ��Ʈ�� �̿��� �� �ִ��� �˰� ������ Alt + Enter ���� Ű�� ����� �� �ֽ��ϴ�. �Ұ�����Intention Action�� ����ġ �ϱ� ���� ȸ������ �� ������ Ŭ���Ͻʽÿ�.
Intention Action�� Ÿ��
|
�Ϲ�������, Intention Action�� �� ���� �׷����� ������ �� �ֽ��ϴ�:
1. "Create
from usage" intentions
�� Ÿ���� Intention Action�� ���ο� �ڵ� �׸��� �����մϴ�: Ŭ����, �������̽�, �޼ҵ� �� �׵��� ����� �ڵ带 �м��� ��Š����� ����Ʈ�ϰ�, Ư���� ��쿡 �´� ������ �����մϴ�. ���� ���, ���� ������ �빮���̰ų� Create
class�� �̸��� new Ű���� ���� Ÿ���� �� ��, �Ǵ� �빮�ڷ� ������ �ĺ��ڰ� ���۵Ǵ� ���� Create Constant Field�� ���ȵ˴ϴ�.
�� Ÿ�� ���� �ֿ��� ������ ����� ���ο� ���� ù ��°�� �׵��� �������� �ʰ� ����ϱ� ������ �� �ִٴ� ���Դϴ�. ����� ����� ��� �����ϰ� �ִ� ���� IDEA�� �����ϴ� ����, ���ο� ���� ���� �����ϴ� ��ó�� ����� �󼼿� ���� ����� ������ �½�ũ���� ������ �ʽ��ϴ�.
2. Quick
fixes
�� Ÿ���� Intention Action�� ������ �ڵ� �Ǽ��� �����մϴ�: �������� ���� ������ ��� �Ǵ� �߸��� Ÿ���� ǥ�� ���� ï¿½ï¿½ï¿½ï¿½Ï¸é¼ Ã¶ï¿½Ú¸ï¿½ Ʋ���� �� ������.
IDEA �� ����� Ÿ���� �ϴ� �����μ� �� ������ �������� ��� ������ ���� ������ ���Ȱ� �Բ� Intention Action�� ����ϰ� �ִ� �װ͵��� �Ƚ��ϴ� ���� ����� �����մϴ�.
3. Micro-refactorings
�̷� intention actions �� �ڵ忡 ���� ��Ÿ������, �װ��� �Ƹ��� �Ʒ��� ���� �Ϳ� ���� ���� ���� ������ ���� �� ���� ������ �𸨴ϴ�.
����� �Ҵ��� ����
if ������ ��ȯ
2���� if ������Ʈ��Ʈ���� ����
��Ÿ
4. EJB-specific
intentions
�� Ÿ���� Intention Action�� EJB Ŭ���� ������ ���� �߻��մϴ�. �׵��� ���� ������ ��� ������ ��Ƴ��� �ذ��� �����մϴ�. ���� ����, Intention
Action List: Intention Actions for EJBs�� ���ʽÿ�.
5. Miscellaneous
intentions
�׷��� �׷��� �ƹ��Ϳ��� ���� ���� �� ���� �ǵ��� �����մϴ�. ����, �׵� ���� 2���� �ֽ��ϴ�:
Fetch external resource�� Ignore
external resource.
ï¿½é¿ ï¿½ï¿½ï¿½ï¿½ ��ȣ�� ���� ���� �ǵ��� ���� �ٸ��ϴ�.
Intention action sign
|

|
��� ������ IDEA�� ����� �ڵ带 �ٲٱ� ���� �����ϴ� ���� ǥ���մϴ�. �װ��� �ڵ� ����(����ũ�� �����丵�� ����)�� ���� ������ ���Ͽ� ��� �������� ��Ȳ�� ������ Ŀ���մϴ�.
|
Quick-fix sign
|

|
����ǥ�� �ִ� ���� ������ IDEA�� �޼ҵ�� ��ſ��� ���� �Ƚ��� �����ϴ� ���� ǥ���մϴ�. �װ��� Create
from usage intentions�� Quick
fixes�μ� �׷��� ��� �ǵ��� ���谡 �ֽ��ϴ�.
|
Intention Actions�� ������ ����� ���� ����, Intention
Action List ������ �����Ͻʽÿ�.
'Create
from Usage' Intention Actions
|
�̰��� '������κ����� Ŭ���� ����', '������κ����� �ʵ� ����' ���� �����Ͽ� �ϴ��� Intention
Action�� ���� ���� ��Ī�Դϴ�. ����� ���ذ� ������ ���� �� �� �ǵ��� ���� ������ ������� �۵��մϴ�.
���� ���, ����� ������ ���� ���ذ� ������ �����ϴ�:

Alt + Enter�� ������ Create Field 'ref_1'�� �����մϴ�.

IDEA�� �ʵ带 �����ϰ� ���-�ٿ� ��Ͽ��� ������ Ÿ���� �����մϴ�.

����� IDEA�� ���� ���� �Ǵ� �ٸ� ���� �Է��Ͽ� ���ȵ� Ÿ�� ���� 1���� ������ �� �ֽ��ϴ�.
'Create
Getter/Setter' Intention Action
|
�̰��� '������κ����� ����'
Intention Action �� Ư���� ����Դϴ�.
���ذ��� �޼ҵ� ���� get, set �Ǵ� is
�ܾ �����ؾ߸� �մϴ�.

Alt + Enter�� �����ʽÿ�.
IDEA�� �����ϴ� ������ ���� ����(�Ǵ� ������ �ĺ� ��ȣ�� �ִ� ���� �����ϴ� ����)�� �����ϴ� ���� �����ϰ� Create Getter�� �����մϴ�.

IDEA�� ���ȵ� ���� ���¿� �Բ� ���� �޼ҵ带 �����մϴ�. �װ��� �ڵ������� ���õ˴ϴ�. ����� ���ο� ���� Ÿ������ �� �ְų� Ctrl + Space�� ������ ��ϰ� �ٸ� Ÿ���� ������ �� �ֽ��ϴ�.

�޼ҵ忡 ���� ���� ���¸� �����ϰ� �� �Ŀ�(Enter�� �����ϴ�), ����� ����� ���� ������ Ÿ���� �ʵ忡�� ������ �Ǵ� ���ϵ� ������ �̸��� �����ϴ� ���� �����ϰ� �ϸ� �˾��մϴ�. ����� IDEA �Ǵ� �� �ٸ� ���� �Է��Ͽ� ���ȵ� Ÿ�� ���� �� ���� ������ �� �ֽ��ϴ�. �Դٰ�, ����� ���� �ʵ忡 ���� �ⱸ�� ���ʷ� �� �� �ְų�, ���ο� �ϳ��� ������ �� �ֽ��ϴ�.

'Rename
Reference' Intention Action
|
Rename Reference Intention
Action �� Create
from Usage Ÿ����
intentions�� ���� �۵��մϴ�.
���� ����� �̸��� �߸� Ÿ���� �� �� �ֽ��ϴ�. �װ��� �Ƚ��ϴ� ���� �����Rename Reference intention
action�� �Բ� �ֽ��ϴ�:

����� ������ �� Rename Reference �� �׼� �׸��� �����ϰ�, IDEA�� ������ ���縵�� �Բ� ���� ���̿��� ������ ����ϴ�.
�׸��� ��ȿ�� �ʵ�� ���� ���� �̸��� �׸��� ��� �ٿ��մϴ�.

����� Enter ������ ����Ʈ ����(�����ϰ� ���������� �����)�� ������ �� �ְų�, �Ǵ� ����� �ٸ� �̸�(�̸��� ª���� ���� ����)�� Ÿ���� �� �� �ֽ��ϴ�, �Ǵ� ����� drop-down ���(�� �̸��� ���� ���� �̵��)���� IDEA�� ���� ���ȵ� �̸� ���� 1���� ������ �� �ֽ��ϴ�. ù��° ������ ���ڸ� Ÿ�����Ͽ� ����� ����� ���� �� �ֽ��ϴ�. ����� Enter�� ������ �� �Ŀ� ���� �̸��� �ִ� ��� ���ذ� ������ ���ο� ������ �̸��� �ٲ����ϴ�.
'Add
Javadoc Tag' Intention Action
|
Add Javadoc Tag intention
action�� Create from Usage Ÿ���� intentionsó�� �۵��մϴ�
���� ����� ���ο� �ֹ��� Javadoc �±׸� ����, Intention Action�� �װ��� �ֹ��� Javadoc �±��� ��Ͽ� �߰��ϴ� ���� �����ϰ� �ϴ� ���� ���ȵ˴ϴ�:


|
����� File | Settings | IDE
Settings: Errors: Unknown
Javadoc Tags: Options���� �ֹ��� Javadoc �±׸� ������ �� �ֽ��ϴ�.
|
Interface
Intention Action on Parameter Mismatch
|
�� Intention Action�� ����ũ�� �����丵�� ���谡 �ֽ��ϴ�. �Ϻ� �Ű� ������ ������ �� �������̽��� ������ �޼ҵ� ���� ���� ��쿡 �װ��� Ŭ������ �������̽� ������ �����մϴ�.
���� 2���� Ŭ������ �������̽��� �����ʽÿ�.

ClassCaller �� bar() �޼ҵ�� ClassCallee �κ��� foo() �� �θ��ϴ�. �׷���, �ݷ� Ŭ������ myInterface �������̽��� ������ �����մϴ�. Alt +
Enter�� �����ʽÿ�.

' Make 'ClassCaller'
implement Sample.I '�� �����Ͻʽÿ�.

�������̽� ������ Ŭ���� ���� �߰��˴ϴ�. ���� �������̽� �޼ҵ�� Select
Methods to Implement ���̾�α׿� �Բ� ������ ���� ���ȵ� ���Դϴ�.
Static
Import Intention Actions
|
������ ����Ʈ�� ������� �Ͽ��� ������ Ŭ������ Ŭ���� ����� ���ľ� ���� ����ϰ� �մϴ�. ������ �� ���� ������ ����Ʈ intentions
�� �ֽ��ϴ�, "on
demand" �� "single static
import".
���� ij���� �����Ϳ� Ŭ���� �̸� ���� ������ , On-demand
static import�� �Ҹ������ϴ�.

Then all members of the imported class will be used without
a qualifier. The import statement will look
as follows:
�� ���� ����Ʈ�� Ŭ������ ��� ���� ��Ҵ� ���ľ� ���� ���� ���Դϴ�. import ������Ʈ��Ʈ�� ������ ���� �� ���Դϴ�:
import
static java.lang.Math.abs;
���� ij���� �����Ϳ� Ŭ���� �̸� ���� ������ �ϳ��� ������ ����Ʈ�� �Ҹ������ϴ�.

����Ʈ�� Ŭ������ �־��� �̸��� �ִ� ���� ��Ҵ� ���ľ� ���� ���� ���Դϴ�. import ������Ʈ��Ʈ�� ������ ���� �� ���Դϴ�:
import
static java.lang.Math.abs;
����� Import
Assistant Ư¡�� Intention Action���μ� �ൿ�ϱ� ���� ������ �� �ֽ��ϴ�. ���� ���� Managing
Imports: Import Assistant �� ���ʽÿ�.
|