본문 바로가기
IDEA

IntelliJ 기본세팅

by ONE.0 2016. 12. 12.

기본 세팅

테마 변경

File -> Settings -> Appearance & Behavior
    - Appearance UI Option -> Theme

언어셋 변경

File -> Settings -> Editor -> File Encodings
    - IDE Encoding : UTF-8
    - Project Encoding : UTF-8
    - Default encoding for properties files : UTF-8
    - Tansparent native-to-ascii conversion : Check

라인넘버, 화이트스페이스 표시

File -> Settings -> Editor -> Appearance
    - Show line numbers : Check
    - Show whitespaces : Check

변경된 소스 탭(상단) 영역에 * 표시

File -> Settings -> Editor -> General -> Editor Tabs
    - Mark modified tabs with asterisk : Check

폰트 변경

File -> Settings -> Editor -> Colors & Fonts -> Font
    - Primary font 설정

들여쓰기 변경(보류)

File -> Settings -> Editor -> Code Style
    - Java
        - Tab size : 4
        - Indent : 4
    - JavaScript
        - Tabs and Indents
            - Tab size : 4
            - Indent : 4
        - Other
            - Formatting options -> Align object properties : On colon    

스펠링 체크 해제

File -> Settings -> Editor -> Inspections
    - Spelling : Uncheck

패키지 구조 변경(Flat -> Hierarchical)

Project(Alt+1) -> 톱니바퀴 아이콘
    - Compact Empty Middle Packages : Uncheck

톰캣 Console 한글 인코딩

인텔리j에서 톰캣을 통해 웹프로젝트를 실행할 경우 한글이 깨져서 출력하게 된다. 해결방법은 다음과 같다.

  1. 인텔리J 옵션 설정

    {IntelliJ 설치 경로}\bin\idea64.exe.vmoptions (또는 idea.exe.vmoptions) : -Dfile.encoding=UTF-8 추가

  2. Tomcat VM options 설정

    Tomcat Edit Configuration -> Option browser
        - VM options : -Dfile.encoding=UTF-8

Heap Memory 설정

맥과 윈도우의 idea.vmoptions 파일 위치가 상이하다.

  1. 윈도우

Note: 현재 사용중인 OS bit에 따라 설정파일이 다르기 때문에 주의하셔서 설정하시기 바랍니다.

32bit : {IntelliJ IDEA 설치경로}/bin/idea.exe.vmoptions

64bit : {IntelliJ IDEA 설치경로}/bin/idea64.exe.vmoptions

-Xms1024m
-Xmx1024m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
  1. Mac

맥은 잘 모르겠다...


댓글