intellij 한글설정(UTF8)의 모든것
2023. 7. 16. 10:09ㆍ카테고리 없음
반응형
한국인이라면 피할 수 없는 것이 지긋지긋한 한글 설정입니다.
본 포스팅에서는 intellij에서 해야 하는 한글 설정에 대해 기술합니다.
intellij 한글설정 - 가상 머신(VM)
방법 1. intellij 실행 옵션에서 설정
- intellij 설치 경로/bin으로 이동
ex) c:/Program Files/JetBrains/IntelliJ IDEA 2022.2.3/bin - idea64.exe.vmoptions 파일 editor로 open
- 맨 아랫줄에 -Dfile.encoding=UTF-8 추가 후 저장
- Intellij 재실행
방법 2. Intellij 내부 옵션에서 설정
- Help > Edit Custom VM Options... 메뉴 클릭
- 맨 아랫줄에 -Dfile.encoding=UTF-8 추가 후 저장
- Intellij 재실행
intellij 한글 설정 - Editor File Encoding
- File > Settings 클릭
Windows 단축키: Ctrl + Alt + S
Mac 단축키: ⌘; - Editor > File Encodings 클릭
- Global Encoding을 UTF-8로 변경
- Project Encoding을 UTF-8로 변경
- Default encoding for properties files를 UTF-8로 변경
- Transparent native-to-ascii conversion 체크
intellij 한글설정 - tomcat
- Run > Edit Configurations 클릭
- 왼쪽 목록에서 Tomcat 클릭
- VM options에 "-Dfile.encoding=UTF-8" 추가
반응형