[TOC]
https://www.facebook.com/tobyilee/posts/10209064690669000
-
Settings / Editor / Inspections 에서 "no highlighting ..."으로 지정된 항목을 warning 등으로 변경하면 에디터에서 해당 경우들이 warning으로 표현됨
-
그럼 "Show Context Actions"를 실행해서 빠르게 개선/수정 가능
-
foreach loop를 stream api로 변환하도록 warning 보여주기 설정하기
-
설정하기
-
serverity를 warning으로 F2로 이동이 가능하고, opt+enter(show intention actions)를 하면
-
이렇게 "Replace with collect"가 먼저 나옴.
-
이걸 default처럼 "no highlighting, only fix"로 놓으면 F2로 이동이 안되고,
-
"Replace with collect"가 초록색으로 나중에 나옴...
- return 에 커서를 두고 CMD + SHIFT + F7 로 모든 return을 highlighting
- CMD + G 로 탐색
- cmd + shift + A
- Run inspection by name 실행
- Dynamic regular expression could be replaced by compiled Pattern 실행(Inspection에서 별도로 체크하면, 코딩시에 warning으로 뜨는 부분을 쉽게 확인할 수 있음)
- Settings / Editor / Inspection / Java / Performance / Dynamic regular expression could be replaced by compiled Pattern
- plugins에서 jojoldu로 검색하여 Translator plugin 설치
- 한영변환. 주문취소 선택 후 opt+1하면 cancelOrder 를 보여주고
- opt+2하면 cancelOrder로 치환해줌
- https://plugins.jetbrains.com/plugin/7299-gradle-dependencies-helper
- library is searched in Smart Code Completion by Maven repository
- https://github.com/JetBrains/ideavim
- Vim emulation plug-in for IDEs based on the IntelliJ platform
- Live Edit plugin을 설치하고, settings에서 live edit를 enable하면 브라우저에서 현재 html을 바로 볼 수 있음.
- 브라우저가 일단 열린 후엔 ctrl+r로 갱신.
https://jojoldu.tistory.com/266
https://plugins.jetbrains.com/plugin/14016-intellijdeodorant
- ^+space: basic completion
- ^+shift+space: smart completion —> ^+shift+z
- opt+space: quick definition
- ^+shift+o: get relevant example
- https://plugins.jetbrains.com/plugin/9792-key-promoter-x/
- IDEㅔ서 마우스를 사용하면 단축키를 보여줌
- https://blog.jetbrains.com/idea/2019/11/meet-grazie-the-ultimate-spelling-grammar-and-style-checker-for-intellij-idea/
- the ultimate spelling, grammar, and style checker for IntelliJ IDEA
- console에서 defaults write -g ApplePressAndHoldEnabled -bool false
- 인텔리제이 재시작
- 먼저 lombok 플러그인 설치
- 아래 그림과 같이 “Enable annotation processing”을 체크
- 아래 그림처럼 “Configuration of intellij seams to be ok”를 확인
- build.gradle 파일에
git = org.ajoberstar.grgit.Grgit.open()
- 이런 라인이 있을 때 intellij에서 import하면
- 아래와 같은 오류가 발생함
- 이때 위 라인을 아래와 같이 변경하면 문제가 해결됨
git = org.ajoberstar.grgit.Grgit.open(currentDir: file('.'))
- 참고: ajoberstar/grgit#140
- Preferences / Build, Executetion, Deployment / Compiler / User-local build process VM options (overrides Shared options)
- -Xmx4096m 지정
Menu | Shortcuts |
---|---|
Argument documentation for method calls | Cmd + P |
(Un)Comment line | Cmd + L |
(Un)Comment selection | Shift + Control + / |
Collapse all | cmd+shift+(-/+) |
Collapse/expand all | shift + cmd + -/+ |
Collapse/expand | cmd + -/+ |
Collapse/uncollapse | cmd+(-/+) |
Cycle through the history of most recent changes | Cmd + Shift + Backspace |
Delete line | Cmd + Y |
Documentation comment block | /** + Enter |
Find action | cmd + shitt + a |
Find members in current file | Cmd + F12 |
Find members in current project | Cmd + Alt + Shift + N |
Generate | ctrl + n |
Incremental selection | Cmd(Ctrl) + W |
Move code up and downs | opt+shift+(up/down) |
Paste from five previous copies | Cmd + Shift + V |
Reformat code | Option + Cmd + L |
Select word at caret | cmd + w |
Show recently changed files | Cmd + Shift + E |
Structure | cmd + 7 |
Switcher | ctrl + tab |
Toggle between test & production | cmd + shift + t |