ํฐ์คํ ๋ฆฌ ๋ทฐ
โ [JAVA] ์ฝ๋ฉ ์ปจ๋ฒค์
๋ค์ด๋ฒ ์บ ํผ์ค ํต๋ฐ์ด ์ฝ๋ฉ์ปจ๋ฒค์ ๋ฌธ์ ์ฐธ๊ณ
IntelliJ ํ์ผ ๋์ ์๋ ๊ฐํ
ํ์ผ ๋์ ๊ฐํ์ ์ถ๊ฐํด์ผํ๋ ์ด์
https://blog.coderifleman.com/2015/04/04/text-files-end-with-a-newline/
ํ์ผ ๋์ ๊ฐํ์ ์ถ๊ฐํด์ผ ํ๋ ์ด์
POSIX ๋ช ์ธ๋ฅผ ๊ทผ๊ฑฐ๋ก ํ์ผ ๋์ ๊ฐํ์ ์ถ๊ฐํด์ผํ๋ ์ด์ ๋ฅผ ์์๋ณด๊ณ WebStorm IDE์์ ์๋์ผ๋ก ๊ฐํ์ ์ถ๊ฐํ๋ ๋ฐฉ๋ฒ์ ์๊ฐํฉ๋๋ค.
blog.coderifleman.com
IntelliJ Hard Wrap ์ค์
Hard Wrap์ ์ค๋ฐ๊ฟ ์์น
command + ,(์ค์ ) -> Code Style -> Hard Wrap at : 120 ์ค์
์ด๋ ๊ฒ๋ง ์ค์ ํ๋ฉด ์๋์ผ๋ก ์ค๋ฐ๊ฟ ์ฒ๋ฆฌ๊ฐ ๋์ง ์์ต๋๋ค.
Code Style -> Java -> Wrapping and Braces -> Wrap on typing [Yes] && Ensure right margin is not exceeded [Check] ๋ฅผ ํด์ฃผ์ด์ผํฉ๋๋ค.
IntelliJ ์ ์ฅ์ ์๋ ์ ๋ ฌ ๋ฐ import๋ฌธ ์ ๋ฆฌ
- IntelliJ ๋ฒ์ ์ด 2021.2 ์ด์์ด์ด์ผ ํด๋น ์ต์ ์ ์ค์ ํ ์ ์์ต๋๋ค. ์ดํ๋ฒ์ ์์๋ plugin์์ save action ์ฌ์ฉ
IntelliJ checkstyle ์ ์ฉํ๊ธฐ
https://github.com/checkstyle/checkstyle/releases/
Releases · checkstyle/checkstyle
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly co...
github.com
https://github.com/naver/hackday-conventions-java/tree/master/rule-config
GitHub - naver/hackday-conventions-java: ์บ ํผ์ค ํต๋ฐ์ด Java ์ฝ๋ฉ ์ปจ๋ฒค์
์บ ํผ์ค ํต๋ฐ์ด Java ์ฝ๋ฉ ์ปจ๋ฒค์ . Contribute to naver/hackday-conventions-java development by creating an account on GitHub.
github.com
์์ ๊นํ์ ๋ค์ด๊ฐ์ rules, suppression, formatter ๋ฅผ ๋จผ์ ๋ค์ด๋ก๋ ํ๋ค
IntelliJ -> plugins -> checkstyle ๋ค์ด๋ก๋
Tool -> checkstyle๊ฐ์ ์๋์ ๊ฐ์ด ์ ํ ํด์ค๋ค
Configuration File ์๋ + ๋ฒํผ์ ๋๋ฌ ์๋์ ๊ฐ์ด ์ ํ
Desc : naver-checkstyle-rules
browse -> ๋ค์ด๋ฐ์๋ naver-checkstyle-rules.xml ์ ํ
Next ํด๋ฆญ
์ฐธ๊ณ
- https://iamtaehoon.tistory.com/191
- https://creampuffy.tistory.com/128?category=986887
'๐ Tool' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
VSCode Explorer ํฐํธ ํฌ๊ธฐ ๋ณ๊ฒฝ (0) | 2024.07.25 |
---|---|
VSCode ๋ธ์ด์์ค์ฝ๋ ์คํฌ๋กค๋ฌ ํฐํธํฌ๊ธฐ ๋ณ๊ฒฝ (0) | 2024.07.25 |
IntelliJ ํ๋ก์ ํธ ์์ ์ ์ฒด ๊ฒฝ๋ก ์จ๊ธฐ๊ธฐ (0) | 2023.08.22 |
IntelliJ Live Template๋ฅผ ์ด์ฉํด์ ์ฝ๊ฒ ํ ์คํธ ์ฝ๋ ์์ฑํ๊ธฐ (0) | 2023.03.05 |
- Total
- Today
- Yesterday
- ๊ฐ์ฒด์งํฅ์ค๊ณ solid
- git gmail
- ๋์์ธํจํด ๋จ์
- ๋งฅ๋ฆฐ์ด ์ฑ ์ถ์ฒ
- git name
- ๋งฅ ์ฑ ์ถ์ฒ
- ๋์์ธํจํด ์ฅ์
- ๊ฐ์ฒด ์งํฅ ์ค๊ณ ์์น
- ๋์์ธํจํด ์ฅ๋จ์
- git user.gmail
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |