문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
intellij_idea:config [2018/05/09 14:05] kwon37xi [Windows WLS Linux Terminal] |
intellij_idea:config [2023/03/24 13:01] kwon37xi [글꼴 / Font] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== IntelliJ IDEA Config 설정 ====== | ====== IntelliJ IDEA Config 설정 ====== | ||
+ | * [[: | ||
* [[http:// | * [[http:// | ||
* [[intellij_idea: | * [[intellij_idea: | ||
+ | * [[https:// | ||
+ | |||
===== JDK 선택 ===== | ===== JDK 선택 ===== | ||
* 2016.3 혹은 그 이전 버전부터 '' | * 2016.3 혹은 그 이전 버전부터 '' | ||
줄 12: | 줄 15: | ||
===== VMOptions ===== | ===== VMOptions ===== | ||
+ | * [[https:// | ||
* 기본적으로는 **Help -> Edit Custom VM Options** 메뉴에 나오는 파일에서 JVM Option 조정 | * 기본적으로는 **Help -> Edit Custom VM Options** 메뉴에 나오는 파일에서 JVM Option 조정 | ||
* '' | * '' | ||
줄 26: | 줄 30: | ||
... 기타 옵션들 ... | ... 기타 옵션들 ... | ||
-Dawt.useSystemAAFontSettings=lcd | -Dawt.useSystemAAFontSettings=lcd | ||
+ | </ | ||
+ | * '' | ||
+ | * 한글로 된 HOME 디렉토리(특히 Windows에서) 사용시 Code Coverage가 작동하지 않는 등의 문제가 있다. '' | ||
+ | -Djava.io.tmpdir=C: | ||
</ | </ | ||
+ | ===== Linux 한글 입력 ===== | ||
+ | * Linux 입력기 문제는 버전에 따른 편차가 매우 크기 때문에, **잘된다면 아래내용 무시할것.** | ||
+ | * [[linux: | ||
+ | |||
+ | ==== fcitx ==== | ||
+ | |||
+ | * [[linux: | ||
+ | * '' | ||
+ | |||
+ | ==== ibus ==== | ||
+ | * [[linux: | ||
+ | * 즉시 해결 | ||
+ | <code sh> | ||
+ | ibus-daemon -rd | ||
+ | </ | ||
+ | * '' | ||
+ | < | ||
+ | -Drecreate.x11.input.method=true | ||
+ | </ | ||
+ | * 한글 입력시 공백등이 튈 경우 | ||
+ | <code sh> | ||
+ | gsettings set org.freedesktop.ibus.engine.hangul use-event-forwarding true | ||
+ | </ | ||
===== 설정 파일들의 디렉토리 변경 ===== | ===== 설정 파일들의 디렉토리 변경 ===== | ||
+ | * [[https:// | ||
+ | * 설정 파일 : '' | ||
+ | * 캐시와 local history 파일 : '' | ||
+ | * 플러그인 : '' | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
줄 46: | 줄 81: | ||
idea.log.path=/ | idea.log.path=/ | ||
</ | </ | ||
+ | * Windows 에서 한글 사용자명 폴더일 경우에 config.path와 system.path를 변경시켜줘야한다. 안그러면 일부 기능이 작동하지 않을 수 있다. | ||
===== Idea Properties ===== | ===== Idea Properties ===== | ||
줄 53: | 줄 89: | ||
===== 성능 ===== | ===== 성능 ===== | ||
* Java 7 사용시 메모리 2GB에 G1 GC를 사용하니까 성능이 안정적이었다. | * Java 7 사용시 메모리 2GB에 G1 GC를 사용하니까 성능이 안정적이었다. | ||
- | * Inspection에서 불필요한 | + | * 각 프로젝트별로 **Settings -> Inspections**에서 |
* VisualVM + VisualGC 등으로 보면서 안정 상태 확인할 것. | * VisualVM + VisualGC 등으로 보면서 안정 상태 확인할 것. | ||
* Inspection 등의 옵션 바꾸고 성능 확인시 가능하면 껐다 켜 볼 것. 옵션 변경이 즉시 적용이 안되는 경우가 있는 것으로 느껴진다. | * Inspection 등의 옵션 바꾸고 성능 확인시 가능하면 껐다 켜 볼 것. 옵션 변경이 즉시 적용이 안되는 경우가 있는 것으로 느껴진다. | ||
+ | * Windows Defender 혹은 그외 Anti Virus 백신에서 프로젝트 디렉토리를 제외 처리 해야 성능이 좋아진다. | ||
+ | * [[https:// | ||
+ | |||
===== Console Buffer size ===== | ===== Console Buffer size ===== | ||
- | * **과도한 Console 로깅은 IntelliJ의 GC를 유발하며 성능을 현격히 떨어뜨린다.** | + | * **과도한 Console 로깅은 IntelliJ의 GC를 유발하며 성능을 현격히 떨어뜨린다.** |
* '' | * '' | ||
* '' | * '' | ||
줄 70: | 줄 109: | ||
sudo sysctl -p | sudo sysctl -p | ||
</ | </ | ||
+ | |||
+ | ===== 자동 빌드 - auto build ===== | ||
+ | * 자동 빌드는 클래스가 변경될 때마다 자동으로 컴파일하고, | ||
+ | * 나는 자동 빌드 활성화 시에 **지나치게 잦은 compile & deploy로 인한 성능저하** 문제가 더 크다고 보고, 이를 꺼둔 상태로 사용한다.(IntelliJ Idea 자체도 기본값이 끄기) | ||
+ | * Actions 에서 **Registry...** 를 찾아서 | ||
+ | * '' | ||
+ | * **Settings -> Build, Execution, Deployment -> Compiler -> Build project automatically** 활성화. | ||
===== Tomcat(WAS) 실행 옵션 ===== | ===== Tomcat(WAS) 실행 옵션 ===== | ||
줄 79: | 줄 125: | ||
===== Settings ===== | ===== Settings ===== | ||
+ | ==== Default Settings ==== | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
==== Appearance ==== | ==== Appearance ==== | ||
* '' | * '' | ||
줄 84: | 줄 134: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | ==== 글꼴 / Font ==== | ||
+ | * [[https:// | ||
+ | * **Enable ligature** check | ||
+ | |||
+ | === Terminal Font === | ||
+ | * **Settings -> Editor -> Color Scheme -> Console Font** 에서 명시할 수 있다. | ||
+ | * '' | ||
+ | |||
==== System Settings ==== | ==== System Settings ==== | ||
* '' | * '' | ||
줄 93: | 줄 152: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
=== 코드 Color Scheme === | === 코드 Color Scheme === | ||
줄 114: | 줄 174: | ||
* [[http:// | * [[http:// | ||
- | ==== Editor -> Code Folding ==== | + | ==== Editor |
+ | * 코드가 너무 축약 돼 보인다. | ||
* '' | * '' | ||
==== Editor -> General ==== | ==== Editor -> General ==== | ||
* '' | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
==== Code Formatter ==== | ==== Code Formatter ==== | ||
* [[http:// | * [[http:// | ||
줄 160: | 줄 225: | ||
* '' | * '' | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
==== Gradle ==== | ==== Gradle ==== | ||
* 가능하면 '' | * 가능하면 '' | ||
줄 171: | 줄 236: | ||
- | ===== 성능 향상 ===== | ||
- | * 각 프로젝트별로 **Settings -> Inspections**에서 Spelling을 비롯한 불필요한 항목들을 제거해준다. | ||
===== Gradle ===== | ===== Gradle ===== | ||
줄 189: | 줄 252: | ||
* [[java: | * [[java: | ||
+ | ===== Local Changes ===== | ||
+ | * 원래 VCS Tool Window (''< | ||
+ | |||
===== Issue Navigation ===== | ===== Issue Navigation ===== | ||
* VCS 로그에 있는 커밋 메시지를 파싱하여 이슈 트래커로 가능 링크를 자동 생성해준다. | * VCS 로그에 있는 커밋 메시지를 파싱하여 이슈 트래커로 가능 링크를 자동 생성해준다. | ||
* '' | * '' | ||
* [[https:// | * [[https:// | ||
- | * Jira 예. commit 에 '' | + | * Jira 예. commit 에 '' |
* Issue ID : '' | * Issue ID : '' | ||
* link : '' | * link : '' | ||
- | ===== Windows WLS Linux Terminal ===== | + | ===== Server certificate ===== |
+ | * '' | ||
+ | * **Settings -> Tools -> Server Certificates** 에서 **Accept non-trusted certificates automatically** 를 활성화 해준다. | ||
+ | |||
+ | ===== Windows WLS Linux Terminal | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * PowerShell 은 '' | ||
===== 14.1.5 ===== | ===== 14.1.5 ===== |