사용자 도구

사이트 도구


intellij_idea:config

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
intellij_idea:config [2018/09/14 13:44]
kwon37xi [VMOptions]
intellij_idea:config [2023/03/24 13:01] (현재)
kwon37xi [글꼴 / Font]
줄 3: 줄 3:
   * [[http://beyondj2ee.wordpress.com/2013/06/01/%ec%9d%b8%ed%85%94%eb%a6%acj-%ec%8b%9c%ec%9e%91%ed%95%98%ea%b8%b0-part1-getting-start-intellij-%ea%b8%b0%eb%b3%b8-%ec%84%a4%ec%a0%95%ed%8e%b8/|인텔리J 시작하기 Part1 (Getting Start IntelliJ) -기본 설정편]]   * [[http://beyondj2ee.wordpress.com/2013/06/01/%ec%9d%b8%ed%85%94%eb%a6%acj-%ec%8b%9c%ec%9e%91%ed%95%98%ea%b8%b0-part1-getting-start-intellij-%ea%b8%b0%eb%b3%b8-%ec%84%a4%ec%a0%95%ed%8e%b8/|인텔리J 시작하기 Part1 (Getting Start IntelliJ) -기본 설정편]]
   * [[intellij_idea:shortcut|IntelliJ IDEA Shortcut 단축키]]   * [[intellij_idea:shortcut|IntelliJ IDEA Shortcut 단축키]]
 +  * [[https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html|Sharing Your IDE Settings - Help | IntelliJ IDEA]] IDEA 설정 동기화 방법
  
 ===== JDK 선택 ===== ===== JDK 선택 =====
줄 14: 줄 15:
  
 ===== VMOptions ===== ===== VMOptions =====
 +  * [[https://intellij-support.jetbrains.com/hc/en-us/articles/206544869-Configuring-JVM-options-and-platform-properties|Configuring JVM options and platform properties – IDEs Support (IntelliJ Platform) | JetBrains]]
   * 기본적으로는 **Help -> Edit Custom VM Options** 메뉴에 나오는 파일에서 JVM Option 조정   * 기본적으로는 **Help -> Edit Custom VM Options** 메뉴에 나오는 파일에서 JVM Option 조정
     * ''${IDEA_HOME}/bin'' 에 보면 ''idea.exe.vmoptions/idea.vmoptions''와 ''idea64.exe.vmoptions/idea64.vmoptions'' 두 파일이 32bit/64bit에 따라 IntelliJ IDEA 실행 JVM 옵션을 주는 파일이다.     * ''${IDEA_HOME}/bin'' 에 보면 ''idea.exe.vmoptions/idea.vmoptions''와 ''idea64.exe.vmoptions/idea64.vmoptions'' 두 파일이 32bit/64bit에 따라 IntelliJ IDEA 실행 JVM 옵션을 주는 파일이다.
줄 29: 줄 31:
 -Dawt.useSystemAAFontSettings=lcd -Dawt.useSystemAAFontSettings=lcd
 </code> </code>
-  * **차라리 -Xmx1g -Xms1g 에 ConcMarkSweepGC가 더 나은 것 같다.** 메모리 2gb라고 더 좋아지는 낌은 아니다.+  * ''-server'' 옵션은 빼자시작 속도가 엄청 려진다.
   * 한글로 된 HOME 디렉토리(특히 Windows에서) 사용시 Code Coverage가 작동하지 않는 등의 문제가 있다. ''vmoptions''에서 ''java.io.tmpdir''을 영어로 된 디렉토리로 바꿔줘야 한다.<code>   * 한글로 된 HOME 디렉토리(특히 Windows에서) 사용시 Code Coverage가 작동하지 않는 등의 문제가 있다. ''vmoptions''에서 ''java.io.tmpdir''을 영어로 된 디렉토리로 바꿔줘야 한다.<code>
 -Djava.io.tmpdir=C:\Temp -Djava.io.tmpdir=C:\Temp
 +</code>
 +
 +===== Linux 한글 입력 =====
 +  * Linux 입력기 문제는 버전에 따른 편차가 매우 크기 때문에, **잘된다면 아래내용 무시할것.**
 +  * [[linux:inputmethod|Input Method (입력기, 한글)]]에서 한글 입력이 잘 안 될 경우
 +
 +==== fcitx ====
 +
 +  * [[linux:inputmethod:fcitx|Linux Input Method fcitx]] 한글 입력이 잘 안 될경우 [[https://intellij-support.jetbrains.com/hc/en-us/community/posts/360006740379-2019-3-Update-disabled-Fcitx-input-Ubuntu|2019.3 Update disabled Fcitx input? - Ubuntu – IDEs Support (IntelliJ Platform) | JetBrains]]
 +    * ''-Dauto.disable.input.methods=false''
 +
 +==== ibus ====
 +  * [[linux:inputmethod:ibus|iBus]] 한글 입력이 잘 안 될 경우 [[https://youtrack.jetbrains.com/issue/JBR-2444|Keyboard stops working in IntelliJ on Ubuntu 20.04, Gnome 3.36 with IBus enabled : JBR-2444]]
 +    * 즉시 해결
 +<code sh>
 +ibus-daemon -rd
 +</code>
 +    * ''Edit Custom VM Options...''
 +<code>
 +-Drecreate.x11.input.method=true
 +</code>
 +  * 한글 입력시 공백등이 튈 경우
 +<code sh>
 +gsettings set org.freedesktop.ibus.engine.hangul use-event-forwarding true
 </code> </code>
 ===== 설정 파일들의 디렉토리 변경 ===== ===== 설정 파일들의 디렉토리 변경 =====
 +  * [[https://www.jetbrains.com/help/idea/tuning-the-ide.html#config-directory|설정 파일 디렉토리]]
 +    * 설정 파일 : ''~/.config/JetBrains/<product><version>''
 +    * 캐시와 local history 파일 : ''~/.cache/JetBrains/<product><version>''
 +    * 플러그인 : ''~/.local/share/JetBrains/<product><version>''
   * [[https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs|Directories used by the IDE to store settings, caches, plugins and logs]]   * [[https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs|Directories used by the IDE to store settings, caches, plugins and logs]]
   * [[https://intellij-support.jetbrains.com/hc/en-us/articles/207240985-Changing-IDE-default-directories-used-for-config-plugins-and-caches-storage|Changing IDE default directories used for config, plugins, and caches storage]]   * [[https://intellij-support.jetbrains.com/hc/en-us/articles/207240985-Changing-IDE-default-directories-used-for-config-plugins-and-caches-storage|Changing IDE default directories used for config, plugins, and caches storage]]
줄 52: 줄 82:
 </code> </code>
   * Windows 에서 한글 사용자명 폴더일 경우에 config.path와 system.path를 변경시켜줘야한다. 안그러면 일부 기능이 작동하지 않을 수 있다.   * Windows 에서 한글 사용자명 폴더일 경우에 config.path와 system.path를 변경시켜줘야한다. 안그러면 일부 기능이 작동하지 않을 수 있다.
 +
 ===== Idea Properties ===== ===== Idea Properties =====
   * 기본적으로는 **Help -> Edit Custom Properties** 메뉴에 나오는 파일에서 편집한다.   * 기본적으로는 **Help -> Edit Custom Properties** 메뉴에 나오는 파일에서 편집한다.
줄 65: 줄 96:
  
 ===== Console Buffer size ===== ===== Console Buffer size =====
-  * **과도한 Console 로깅은 IntelliJ의 GC를 유발하며 성능을 현격히 떨어뜨린다.**+  * **과도한 Console 로깅은 IntelliJ의 GC를 유발하며 성능을 현격히 떨어뜨린다.** 로깅양이 많을 경우 IntelliJ가 멈춘 것 처럼 보인다.
   * ''idea.properties'' 파일에서   * ''idea.properties'' 파일에서
   * ''idea.cycle.buffer.size=1024'' 항목을 KB 단위로 변경. 나는 보통 ''10240''.   * ''idea.cycle.buffer.size=1024'' 항목을 KB 단위로 변경. 나는 보통 ''10240''.
줄 78: 줄 109:
 sudo sysctl -p sudo sysctl -p
 </code> </code>
 +
 +===== 자동 빌드 - auto build =====
 +  * 자동 빌드는 클래스가 변경될 때마다 자동으로 컴파일하고, 배포한다.
 +  * 나는 자동 빌드 활성화 시에 **지나치게 잦은 compile & deploy로 인한 성능저하** 문제가 더 크다고 보고, 이를 꺼둔 상태로 사용한다.(IntelliJ Idea 자체도 기본값이 끄기)
 +  * Actions 에서 **Registry...** 를 찾아서
 +    * ''compiler.automake.allow.when.app.running=true'' 로 변경
 +  * **Settings -> Build, Execution, Deployment -> Compiler -> Build project automatically** 활성화.
  
 ===== Tomcat(WAS) 실행 옵션 ===== ===== Tomcat(WAS) 실행 옵션 =====
줄 88: 줄 126:
 ===== Settings ===== ===== Settings =====
 ==== Default Settings ==== ==== Default Settings ====
-  * ''File -> Other Settings -> Default Settings'' 에서 모드 ㄴ프로젝트의 기본 설정을 할 수 있다.+  * ''File -> New Project Settings'' 에서 모든 프로젝트의 기본 설정을 할 수 있다.
   * ''Annotation Processors -> Enable annotation processing'' : [[java:lombok|Lombok]] 사용시 항상 필요하므로 활성화 해 둔다.   * ''Annotation Processors -> Enable annotation processing'' : [[java:lombok|Lombok]] 사용시 항상 필요하므로 활성화 해 둔다.
  
줄 100: 줄 138:
   * [[https://github.com/naver/d2codingfont|D2Coding]] ligature 를 사용하면 ''!='' 등의 코딩 기호를 간결하게 볼 수 있다.   * [[https://github.com/naver/d2codingfont|D2Coding]] ligature 를 사용하면 ''!='' 등의 코딩 기호를 간결하게 볼 수 있다.
   * **Enable ligature** check   * **Enable ligature** check
 +
 +=== Terminal Font ===
 +  * **Settings -> Editor -> Color Scheme -> Console Font** 에서 명시할 수 있다.
 +  * ''CodeNewRoman Nerd Font Mono''
  
 ==== System Settings ==== ==== System Settings ====
줄 132: 줄 174:
   * [[http://www.jetbrains.com/idea/webhelp/file-status-highlights.html|File status highlights]]   * [[http://www.jetbrains.com/idea/webhelp/file-status-highlights.html|File status highlights]]
  
-==== Editor -> Code Folding ====+==== Editor -> General -> Code Folding ==== 
 +  * 코드가 너무 축약 돼 보인다.
   * ''One-line method'' 이하 ~ ''End of line comments sequence''까지 uncheck   * ''One-line method'' 이하 ~ ''End of line comments sequence''까지 uncheck
  
줄 138: 줄 181:
   * ''Change font size (Zoom) with Ctrl+Mouse Wheel'' : 마우스 휠을 이용해 글꼴 크기 변경. ''Reset Font Size'' 액션으로 초기화 가능   * ''Change font size (Zoom) with Ctrl+Mouse Wheel'' : 마우스 휠을 이용해 글꼴 크기 변경. ''Reset Font Size'' 액션으로 초기화 가능
   * ''Editor Tabs''에서 ''Placement''를 ''None''으로 변경한다. 해보면 거의 사용안하고, ''Ctrl+E''로 최근 탭을 찾게 된다.   * ''Editor Tabs''에서 ''Placement''를 ''None''으로 변경한다. 해보면 거의 사용안하고, ''Ctrl+E''로 최근 탭을 찾게 된다.
 +  * ''Render documentation comments'' : Javadoc HTML을 보기 좋게 변환해서 소스상에서 보여준다.
 +  * ''Surround selection on typing quote or brace'' : 텍스트를 선택하고 ''"'', ''%%'%%'', ''{}'' 를 입력하면 자동으로 감싸준다.
 +  * ''Soft Wraps''
 +    * ''Soft-wrap these files'' : 지정된 확장자의 파일들을 soft wrap(긴줄을 아래로 내려서 보여주기)한다.
 ==== Code Formatter ==== ==== Code Formatter ====
   * [[http://plugins.jetbrains.com/plugin/?id=6546|Eclipse Code Formatter]] 플로그인을 사용하여 Eclipse와 동일한 코드 포매터를 공유할 수 있다. -> 최근 버전에서는 IntelliJ 스스로 Eclipse Code Style을 import 할 수 있어서 불필요.   * [[http://plugins.jetbrains.com/plugin/?id=6546|Eclipse Code Formatter]] 플로그인을 사용하여 Eclipse와 동일한 코드 포매터를 공유할 수 있다. -> 최근 버전에서는 IntelliJ 스스로 Eclipse Code Style을 import 할 수 있어서 불필요.
줄 178: 줄 225:
   * ''Grep Console''   * ''Grep Console''
   * [[https://github.com/gradle/gradle-intellij-gui/wiki|Gradle IntelliJ GUI]]   * [[https://github.com/gradle/gradle-intellij-gui/wiki|Gradle IntelliJ GUI]]
 +  * [[https://plugins.jetbrains.com/plugin/9567-request-mapper|request-mapper]] [[springframework:mvc|Spring MVC]] JAX-RS 등의 URL로 컨트롤러 클래스 검색
 ==== Gradle ==== ==== Gradle ====
   * 가능하면 ''Gradle Wrapper''사용,   * 가능하면 ''Gradle Wrapper''사용,
줄 205: 줄 252:
   * [[java:tomcat:log|Tomcat Log]]의 JULI 부분을 참조하여 톰캣 로그가 하나의 콘솔에 모두 찍히도록 한다.   * [[java:tomcat:log|Tomcat Log]]의 JULI 부분을 참조하여 톰캣 로그가 하나의 콘솔에 모두 찍히도록 한다.
  
 +===== Local Changes =====
 +  * 원래 VCS Tool Window (''<Alt>+9'') 에 **Local Changegs** 탭(Tasks 목록과 수정된 파일 목록을 보여줌)이 있어야 하는데 안보인다면 Action 에서 **Show Local Changes** 를 실행해본다.
 + 
 ===== Issue Navigation ===== ===== Issue Navigation =====
   * VCS 로그에 있는 커밋 메시지를 파싱하여 이슈 트래커로 가능 링크를 자동 생성해준다.   * VCS 로그에 있는 커밋 메시지를 파싱하여 이슈 트래커로 가능 링크를 자동 생성해준다.
   * ''Settings -> Version Control -> IssueNavigation''   * ''Settings -> Version Control -> IssueNavigation''
   * [[https://www.jetbrains.com/idea/help/issue-navigation.html|IntelliJ IDEA 14.0.0 Web Help]]   * [[https://www.jetbrains.com/idea/help/issue-navigation.html|IntelliJ IDEA 14.0.0 Web Help]]
-  * Jira 예. commit 에 ''[XXX-123] 설명'' 형태로 적는다고 할 때+  * Jira 예. commit 에 ''[XXX-123] 설명'' 형태로 적는다고 할 때 -> 최신 버전은 자동으로 **Add Jira pattern** 기능이 생겨서 불필요함. 
       * Issue ID : ''\[([A-Z]+\-\d+)\].*''       * Issue ID : ''\[([A-Z]+\-\d+)\].*''
       * link : ''http://jira.url.com/browse/$1''       * link : ''http://jira.url.com/browse/$1''
 +
 +===== Server certificate =====
 +  * ''Server’s Certificate is not trusted'' 팝업이 지속적으로 뜰 경우(회사에서 개별 인증서 등록해서 사용시) 무조건 accept 하려면,
 +  * **Settings -> Tools -> Server Certificates** 에서 **Accept non-trusted certificates automatically** 를 활성화 해준다.
  
 ===== Windows WLS Linux Terminal & PowerShell ===== ===== Windows WLS Linux Terminal & PowerShell =====
intellij_idea/config.1536900280.txt.gz · 마지막으로 수정됨: 2018/09/14 13:44 저자 kwon37xi