Eclipse:ConfigurationSetting
이클립스를 처음 시작했을 때 기본설정을 변경해야 하는 부분에 대하여 정리한다.
Project Directory Open
프로젝트 디렉터리를 Explorer로 열 수 있는 방법.
- Run > External Tools > External Tools Configurations 이동후 아래와 같이 설정한다.
추가로, Build탭에서 'Build before launch'버튼을 체크해제한다.
Text editor
- Tab을 Space로 변경하는 방법.
Windows > Preferences > General > Editor > Text Editor
Insert spaces for tabs 체크박스를 선택한다.
Displayed tab width 은 변경할 Space 개수이다 (Default: 4).
- Line number 보는 방법.
- 인코딩 설정. (기본 인코딩은 UTF-8(BOM없음), 개행문자는 Unix(LF)를 사용할 경우 아래와 같이 한다.)
Window > Preferences > General > Workspace
Text file encoding: UTF-8
New text file line delimiter: Unix
- 폰트 변경방법. 개인적으로, 네이버 오픈프로젝트의 나눔고딕 코딩글꼴의 10pt크기를 추천한다.
Window > Preferences > General > Appearance > Colors and Fonts
폰트를 설정하기 위한 기본 언어(C/C++, Java, etc)를 선택한 후 폰트를 변경한다.
- 문법별 컬러링 및 문자효과 변경.
특정 문법(주석, 정적변수, etc...)에 대한 문자효과 및 색상을 변경하고 싶을 경우 아래와 같이 진행하면 된다.
Windows > Preferences > [LANGUAGE] > Editor > Syntax Coloring
각각의 엘리먼트에 대하여 설정하면 된다.
Workspace
- 텍스트파일 인코딩을 UTF-8로 변경하는 방법.
- 줄 끝 문자(구획자; Delimiter)를 Unix(\n)으로 변경하는 방법.
Windows > Preferences > General > Workspace
New text file line delimiter 를 Default 에서 Other: Unix 로 선택한다.
Formatting
- 자동 Close Braces(
}
) 삽입 기능을 제거하는 방법.
Windows > Preferences > [LANGUAGE] > Editor > Typing
Automatically close 그룹의 {Braces} 버튼을 선택해제 하면 된다.
Column Section Mode (Block Selection Mode)
The Eclipse 3.5 provides an interesting option - Column Section Mode. This action can be chosen directly from the main toolbar or via the shortcut key ALT + SHIFT + A
세로로 텍스트를 선택할 수 있는 기능이다. ALT + SHIFT + A
가 눌러지지 않을 경우 아래와 같이 선택할 수 있다. (보통, ADT(Android Developer Toolkit)을 설치하면 단축키가 눌려지지 않는다.)
Customize Perspective > Tool Bar Visibility > Tool Bar Structure > Editor Presentation > Toggle Block Selection Mode.