본문 바로가기

IT/기타

이클립스 설정

// eclipse.ini 수정
-vmargs
-Dfile.encoding=UTF-8
-XX:MaxPermSize=256m
-Xms1024m
-Xmx1024m


// 이클립스 테마 변경
File > Import General > Preferences > EPF file(Eclipse Color Themes - Intellij Dracula)
Window > Preferences > Appearance > Colors and Fonts > Text Compare > Outgoing change color > White
Window > Preferences > General > Editors > Text Editors > Current line highlight > 사용자 지정 색 > 80, 80, 80
Window > Preferences > General > Editors > Text Editors > Annotations > Debug Current Instruction Pointer > Red
Window > Preferences > General > Appearance > Theme > Classic(속도 빠름)
Window > Preferences > General > Appearance > Enabled animations > uncheck
Window > Preferences > General > Appearance > Use mixed fonts and colors for labels > uncheck
Window > Preferences > General > Editors > Text Editors > Spelling > uncheck Enable spell checking
Window > Preferences > Team > SVN > Performance > uncheck Compute deep outgoing state, uncheck Enable SVN statuses cache

// 프로그래밍용 폰트 'Consolas + 맑은 고딕'
// 첨부파일 다운로드 후 C:\Windows\Fonts에 붙여넣기

// 이클립스 메모리 상태 보기
Window > Preferences > General > Show heap status

// 이클립스 validation 해제
Window - Preferences - Validation - Suspend all validators - check

// JSP Include Validation (cannot be resolved to a type)
Window - Preferences - Web - JSP Files - Validation - Validate JSP fragments - uncheck

// Javascript Validation 해제
Project - Properties - JavaScript - Include Path - Source - Excluded: (None) - Edit - Exclusion patterns: - Add - **/*.js

// Showing up in Activity Monitor
1: Disable "Synchronize Automatically" in the view menu of the task list.
2: Close the Task List view so it is not visible on startup, and under Preferences > General > Startup and Shutdown uncheck Mylyn Team UI and Mylyn Tasks UI(or uncheck all)

// 소스 감추기 설정
이클립스는 소스 및 코드영역에 대한 Folding 처리가 되어서 불필요한 영역에 대한 축소화를 하여 가독성을 높여줄 수 있는데 기본적인 Import 영역처럼 코드의 영역에 대해서 파일 Open시에 자동으로 Folding 처리 되도록 설정이 가능하다.
해당 설정에 대한 화면은 다음과 같다.
Window > Preferences > Java(또는 사용언어) > Editor > Folding > Enable folding

// 동일성 표시
상단에 있는 Toggle mark occurrences 버튼을 클릭하면 동일성 표시 기능을 활성화/비활성화할 수 있다. 이 기능을 활성화하면, 타깃이나 속성의 이름을 클릭했을 때 파일 전체에 타깃이나 속성의 모든 동일성을 확인, 강조해 준다.

// 이클립스 줄번호
Window > Preferences > General > Editors > Text Editors > Show Line numbers

// JDK 등록
Window -> Preferences -> Java -> Installed JREs -> Add -> Standard VM -> Directory -> Finish

// 빌드 경로 수정
Project - Properties - Java Build Path - Source - Default output folder: SpringMVC/WebContent/WEB-INF/classes

// 자바 웹서버 로컬 경로 변경
Window - Preferences - Server - Runtime Environment

// 웹 서버 라이브러리 추가
Project - Properties - Java Build Path - Add Library(Edit) - Server Runtime - Apache Tomcat v7.0

// Why does my Eclipse project have phantom debugger breakpoints?
Window > Preferences > Java > Debug : Suspend execution on uncaught exceptions(uncheck)

// Ctrl + Shift + F 로 코드 정리할 때 줄바꿈 길게 하기
Window > Preferences > Java > Code Style > Formatter
거기에서 New를 누른다. 자신만의 스타일을 사용하겠다고 알려 주는 것이다.
default로 설정되어 있는 것은 Edit할 수 없기 때문에 반드시 New를 눌러야 한다.
그리고 Line Wrapping 탭에서 Maximum Line Width를 수정해 준다. 기본은 80이다. 나는 160으로 고쳤다.

// 따옴표 자동채우기 제거
Window -> Preferences -> Java -> Editor -> Typing -> Automatically close

// helios, indigo maven 설치
Help > Install New Software... > Add > Name: maven, Location: *
* 인터넷 접속 후 http://eclipse.org/m2e/m2e-downloads.html > M2Eclipse Releases > p2 URL 의 주소 복사

// 북마크 설치 및 단축키
Help > Install New Software... > Work with: > http://www.domui.org/eclipse-updates/ > Eclipse Quick Bookmarks
북마크 : Ctrl + B
다음 북마크 : Ctrl + N
지정 북마크 등록 : Alt + 숫자
지정 북마크 이동 : Alt + Shift + 숫자

// server.xml UTF-8 설정
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1"
                                                             redirectPort="8443" URIEncoding="UTF-8" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />

// 이클립스 한글깨짐
Window - Preferences - General - Workspace - Text file encoding - Other: UTF-8
Window - Preferences - General - Content Types - Text - Java Source File - Default encoding: UTF-8
                                   Web – CSS Files / HTML Files / JSP Files
                                   XML – XML Files
Window - Preferences - General - Editors - Text Editors - Spelling - Encoding: - Other: UTF-8
Window - Preferences - Web - CSS, HTML, JSP Files - Encoding: ISO 10646/Unicode(UTF-8)
기존의 프로젝트 변경은
Project - Properties - Resource - Text file encoding - Other: UTF-8

// Eclipse 글꼴 및 크기 설정
Window - Preferences - General - Appearance - Colors and Fonts - Basic - Text Font - Edit - 다른 글꼴 표시 - Courier New 마우스 우클릭 - 표시 (VS2003은 돋움체)

// 콘솔 버퍼 사이즈 늘리기
Window - Preferences - Run/Debug - Console - Console buffer size(characters): 1000000
Window - Preferences - Run/Debug - Console - Limit console output - uncheck

// 자동으로 debug view로 전환되는 현상 해제
Window - Preferences - Run/Debug - Activate the debug view when a breakpoint is hit - uncheck

// 블록 단위 편집, 열편집
 
Toggle Block Selection Mode(Shift + Alt + A)

// Debug perspective
Skip All Breakpoints
Step Return(F7) : 특정 메서드를 실행하다 바로 리턴
Drop to Frame : 특정 메서드를 실행하다 그 메서드의 처음부터 다시 실행
Step Filters : 필터링 대상 프로그램의 경우 Step Over(F6)와 같이 동작하고, 필터링 대상이 아니면 Step Into(F5)와 같이 동작한다. Debug View의 Use Step Filters 버튼을 눌러 활성화 시킬 수 있다.

// Google App Engine 설치
Help > Install New Software... > Work with: > http://dl.google.com/eclipse/plugin/4.4 (Luna)
Google Plugin for Eclipse 4.4
Google App Engine Java SDK 1.9.21

// Ctrl + Shift + O를 누르면 자동으로 클래스나 인터페이스를 import해 주는데, 개발자가 봤을 때 전혀 사용하지 않는 패키지는 제외할 때
Window > Preference > Java > Appearance > Type Filter > Add
java.awt.*
javax.swing.*

// Call Hierarchy (Ctrl + Alt + H)
The Call Hierarchy view shows callers and callees for a selected Java member.

// Always use the following server when running this project
Project - Properties - Server - <None>

Window - Preferences - General - Web Browser - Use external web browser

// SVN 설치
Help - Eclipse Marketplace... - SVN Team Provider 3.0.0 - Subversive SVN Team Provider (required)
이클립스 재시작 후 커넥터 설치 팝업 안뜰 때
Subversive SVN Connectors - SVNKit 1.7.14 Implementation (Optional)


참조 : http://blog.naver.com/typeofb/154393886