티스토리 뷰
Develop/Java
[Code Formatter] Google Code Style For Eclipse & IntelliJ.
KoreanAussie 2023. 8. 11. 14:36728x90
Answered by ChatCPT.
You can find the Java Google Code Style configuration for both Eclipse IDE and IntelliJ IDEA on the official GitHub repository maintained by Google. Here's how to access and apply the code style settings for each IDE:
For Eclipse IDE:
- Visit the official Google Java Style GitHub repository: Google Java Style. [https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml]
- Right-click on the raw XML file and select "Save As" to download the XML file to your computer.
- In Eclipse IDE, go to "Window" > "Preferences."
- In the Preferences dialog, navigate to "Java" > "Code Style" > "Formatter."
- Click the "Import" button and select the downloaded eclipse-java-google-style.xml file.
- Once imported, select the "GoogleStyle" profile and click "Apply" and then "OK" to save the changes.
For IntelliJ IDEA:
- Visit the official Google Java Style GitHub repository: Google Java Style.
[https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml] - Right-click on the raw XML file and select "Save As" to download the XML file to your computer.
- In IntelliJ IDEA, go to "File" > "Settings" (or "IntelliJ IDEA" > "Preferences" on macOS).
- In the Settings dialog, search for "Editor" and then navigate to "Code Style."
- Click the gear icon and select "Import Scheme" > "IntelliJ IDEA code style XML."
- Locate and select the downloaded intellij-java-google-style.xml file.
- Click "OK" to confirm the import.
- Select "GoogleStyle" from the "Scheme" drop-down list.
- Click "Apply" and then "OK" to save the changes.
By following these steps, you'll apply the Google Java Code Style settings to your Eclipse IDE and IntelliJ IDEA projects, helping you maintain a consistent and standardized coding style.
728x90
'Develop > Java' 카테고리의 다른 글
[JUnit5] Service Mock Test (0) | 2023.05.07 |
---|
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- NOMAD
- 해외생활
- IT
- Mobile
- Upper-Intermediate
- vocabulary
- Intermediate
- Grammar
- Australia
- 조건문
- English
- study english
- 가정법
- 호주생활
- Level B2
- conditionals
- level c1
- News
- IT Nomad
- 영어
- level b1
- b1 level
- IT Namad
- b2 level
- travel
- 호주로또
- Aussie
- Level A2
- study
- ChatGPT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
글 보관함