레이블이 eclipse settings인 게시물을 표시합니다. 모든 게시물 표시
레이블이 eclipse settings인 게시물을 표시합니다. 모든 게시물 표시

2015년 5월 7일 목요일

Tab with Space in Eclipse

Java Editor

  1. Click Window » Preferences
  2. Expand Java » Code Style
  3. Click Formatter
  4. Click the Edit button
  5. Click the Indentation tab
  6. Under General Settings, set Tab policy to: Spaces only
  7. Click OK ad nauseum to apply the changes.

Default Text Editor

Before version 3.6:
Window->Preferences->Editors->Text Editors->Insert spaces for tabs
Version 3.6 and later:
  1. Click Window » Preferences
  2. Expand General » Editors
  3. Click Text Editors
  4. Check Insert spaces for tabs
  5. Click OK ad nauseum to apply the changes.
Note that the default text editor is used as the basis for many none-Java editors in Eclipse. It's astonishing that this setting wasn't available until 3.3.

C / C++

  1. Click Window » Preferences
  2. Expand C/C++ » Code Style
  3. Click Formatter
  4. Click the New button to create a new profile, then OK to continue
  5. Click the Indentation tab
  6. Under General Settings, set Tab policy to: Spaces only
  7. Click OK ad nauseum to apply the changes.

HTML

  1. Click Window » Preferences
  2. Expand Web » HTML Files
  3. Click Editor
  4. Under Formatting, select the Indent using spaces radio button
  5. Click OK to apply the changes.

CSS

Follow the same instructions for HTML, but select CSS Files instead of HTML Files.

JSP

By default, JSP files follow the formatting preferences for HTML Files.

XML

XML files spacing is configured in Preferences.
  1. Click Window » Preferences
  2. Expand XML » XML Files
  3. Click Editor
  4. Select Indent using spaces
  5. You can specify the Indentation size if needed: number of spaces to indent.

2014년 3월 17일 월요일

Settings for Eclipse

- eclipse.ini
 -vm
C:\Java\jre7\bin\server\jvm.dll
     => 오류코드가 1 일 경우 자바 가상 머신의 위치를 고정한다.
 -Dosgi.requiredJavaVersion=1.6
     => JDK 1.6 이상을 설치했을 경우에 1.6으로 설정하면 속도가 빨라진다.
 -Xverify:none
     => 클래스의 유효성을 검사 생략. (시작 시간이 줄어 빨라진다.)
 -XX:+UseParallelGC
    => 병렬 가비지 컬렉션 사용. (병렬 처리로 속도 향상)
 -XX:+AggressiveOpts
    => 컴파일러의 소수점 최적화 기능을 작동시켜 빨라진다.
 -XX:-UseConcMarkSweepGC
     => 병행 mark-sweep GC 수행하여 이클립스 GUI의 응답을 빠르게한다.
 -XX:+CMSIncrementalMode=true
     => 점진적인 GC
 -XX:PermSize=128M
     => Permanent Generation(영구 영역) 크기(Out Of Memory 에러시 크기 조절)
 -XX:MaxPermSize=128M => 최대 Permanent Generation 크기
 -XX:NewSize=128M        => New Generation(새 영역) 크기
 -XX:MaxNewSize=128M   => New Generation(새 영역) 의 최대 크기
 -Xms512m                        => 이클립스가 사용하는 최소 Heap 메모리
 -Xmx512m                    => 이클립스가 사용하는 최대 Heap 메모리 최소와 최대를 같은 값으로 설정하면 오르락 내리락 하지않아 빨라진다.
혹시, 오류로 이클립스가 죽는다면 설정값을 한줄씩 지우거나 숫자를 변경해서 테스트 후 사용하기바람. 
[메모리 정의 예]
1 기가 이하 메모리인 컴퓨터인 경우 => -Xms256m -Xmx256m
2 기가 ~ 3 기가 메모리인 컴퓨터 => -Xms512m -Xmx512m
4기가 이상 메모리인 컴퓨터 => -Xms1024m -Xmx1024m 
[ 참고 ] JVM 은 3가지 메모리 영역을 관리합니다.
 1. Permanent(영구) 영역 : JVM 클래스와 메소드를 위한 공간. = PermSize 설정
 2. New/Young 영역 : 새로 생성된 개체들을 위한 공간. = NewSize 설정 
 3. Old 영역 : 만들어진지 오래된 객체들의 공간.(New 영역에서 이동해 온다)

- jsp Syntax Coloring
 JSP안의 java 코드의 배경색을 설정한다.
 window => Preferences =>
   Web => JSP Files => Editor => Syntax Coloring => Scripting Elements

- 행 끝 빈 공간 없애기
 window => Preferences =>
   Java => Editor => Save Actions => Additional actions 체크하고 Configure 클릭 =>            Formatter 안의 Remove rtailing whitespace 와 Correct indentation 체크
- 기본 편집자 수정
 window => Preferences => Editors => File Associations

 - 수정 및 변경된 라인 표시
 window => Preferences =>
   Editors => Text Editors => Accessibility =>
   Use characters to show changes in vertical ruler - SVN view setting window =>        
   Preferences => Team => SVN
 1. (tab) View Setting => 최하단에 Date Formata
              (e.g. yyyy.MM.dd HH:mm gives 2011.10.29 19:32)
 2. Label Decorations 에서 보여질 내용 구성

 - matches highlighting

XML, CSS
 window => Preferences =>
   General => Editors => Structured Text Editors = Matching brackets highlight

JAVA
 window => Preferences =>
   Java => Editors => Structured Text Editors = Matching brackets highlight