C & C++, 일반

[Tools and Tips] Eclipse 설정

그레이트쪼 2017. 2. 11. 21:46
  • 탭을 공백으로 바꾸는 법 
    • 메뉴 > Windows > Preferences
    • Java > Code Style > Formatter
    • New를 하여 새로운 profile을 만든다. Eclipse[built-in] profile을 base로 'Eclipse[my profile]'을 만든다.
    • "Eclipse[my profile]"설정 창에서 Indentation 탭 > General settings 섹션에서 "Space Only"를 선택하고 save한다.
  • 일 저장시 white space를 trim하는 방법
    • 메뉴 > Windows > Preferences
    • Java > Editor > Save Actions
    • "Perform the selected actions on Save"를 체크(활성화) -> "Additional actions"를 체크(활성화) -> Configure
    • Additional Save Actions 창 > Code Organizing 탭 > "Remove trailing whitespace" 체크
  • 최근에 열었던 tab이 보이도록 하는 방법
    • 메뉴 > Windows > Preferences > General > Appearance
    • Theme을 Classic으로 바꾸면 됨
  • Column guide line 보이게 하기
    • 메뉴 > Windows > Preferences
    • General > Editors > Text Editors
    • 'Show print margin' 항목을 체크하고 원하는 column 개수를 입력한다. 
  • Column guide line 보이게 하기 (Android Studio)
    • 메뉴 > File > Settings
    • (enable/disable) Editor > General > Appearance > Show right margin (configured in Code Style options)
    • (column 개수 조정) Editor > Code Style > Right margin (columns):
  • Line number 보이게 하기 
    • 메뉴 > Windows > Preferences
    • General > Editors > Text Editors
    • 'Show line numbers' 항목을 체크한다. 
  • 공백/tab/new line 등에 가이드 표시 보이게 하는 법 
    • 메뉴 > Windows > Preferences
    • General > Editors > Text Editors
    • 'Show whitespace character' 항목을 체크하고 'configure visibility'항목을 클릭
    • 'Show Whitespace Characters' 창에서 원하는 가이드 표시를 선택
  • 폰트 바꾸는 법
    • 메뉴 > Windows > Preferences
    • General > Appearance > Colors and Font > Basic > Text Font 더블클릭
    • 원하는 폰트를 선택한 후 확인을 누른다.
  • [Trouble Shooting] 자동 Indexing 방지하기 
    • (가끔 자동 indexing한다고 eclipse가 너무 느려지는 경우가 있다. 그때를 대비한 임시 처방)
    • 메뉴 > Project > Properties > Properties 창 > C/C++ General > Indexer
    • 'Enable indexer' option을 diable시킨다.
  • [Trouble Shooting] Android SDK 위치를 찾지 못할 때
    • 메뉴 > Windows > Android SDK Manager 실행시
    • "Could not find SDK folder…"라는 에러 창이 뜬다.
    • 메뉴 > Windows > Preferences > Android 
    • SDK 위치를 최신 다운로드 위치로 변경한다. 
  • 파일찾기
    • Ctrl + Shift + R