헤르메스 LIFE

[IntelliJ] 설정들 #2 본문

Eclipse와 IntelliJ 관련

[IntelliJ] 설정들 #2

헤르메스의날개 2021. 7. 16. 21:27
728x90

https://hermeslog.tistory.com/443

 

[IntelliJ] 설정들

1. Getter, Setter 자동 생성 1-1. lombok Plugin 설치 [File] >> [Settings] >> [Plugins] > lombok 설치 1-2. Enable annotation processing 체크 1-3. 단축키 ( Alt + Ins ) Getter, Setter 뿐만 아니라, Cons..

hermeslog.tistory.com


1. File Encodings

vm option

2. 프로젝트 Java Version  변경 ( Ctrl + Shift  + Alt + 's' )

3. Gradle Java Version 변경

- Settings >> Build, Execution, Deployment >> Build Tools >> Gradle

4. Compiler Java Version 변경

- Settings >> Build, Execution, Deployment >> Compiler >> Java Compiler


1. Tab and Indents

[ File > Settings > Editor > Code Style > Java ]

Tab size : 4 ( Space 로 ... )

2. Space

[ File > Settings > Editor > Code Style > Java ]

제가 좋아하는 space 설정입니다.

3. Import되지 않고, Full pakage 경로를 보여줄 때

[File > Settings > Editor > Code Style > Java ]

3-1. Use fully qualified class names 체크 해제
3-2. Use fully qualified class names in JavaDoc : Naver, use short name and add Import 로 변경

4. Auto Import ( 자동 Import )

[File > Settings > Editor > General > Auto Import ]

Insert imports on paste : All - 모두 자동 Import
                                 ASK - copy&paste 시 자동 Import 의 경우 물어봄.
                                 None - 자동 Import 하지 않음.

Optimize imports on the fly 체크 : Ctrl + Alt + O 정렬

 

6. Java 함수(Function)가 한 줄로 표시되는 문제

[File > Settings > Editor > General > Gode Folding ]

7. 자동줄바꿈. ( 세미콜론 에서 줄바꿈 되지 않은 경우 )

소스정렬 ( Ctrl + Alt + L )을 했는데, 세미콜론의 줄이 개행되지 않습니다.

이 경우는 Reformat ( Ctrl + Shift + Alt + L ) 에서 Rearrange code 를 체크하지 않은 때문입니다.

 


https://hermeslog.tistory.com/443

 

[IntelliJ] 설정들

1. Getter, Setter 자동 생성 1-1. lombok Plugin 설치 [File] >> [Settings] >> [Plugins] > lombok 설치 1-2. Enable annotation processing 체크 1-3. 단축키 ( Alt + Ins ) Getter, Setter 뿐만 아니라, Cons..

hermeslog.tistory.com

https://hermeslog.tistory.com/596

 

[Lombok] IntelliJ 에서 Lombok 사용

1. Plugin 설치 [File] > [Plugins] > Lombok 2. Lombok Dependency 설정 Maven org.projectlombok lombok true Gradle dependencies { compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projec..

hermeslog.tistory.com

https://hermeslog.tistory.com/425

 

[IntelliJ] Plugins

1. lombok plugins.jetbrains.com/plugin/6317-lombok 2. .ignore - Git 사용 시 Ignore 폴더 / 파일을 설정할 수 있음. plugins.jetbrains.com/plugin/7495--ignore 3. Git - IntelliJ 2020.x 버전에는 기본 번들로 설치되어 있습니다. 10. R

hermeslog.tistory.com

 

728x90