개발도구/IDE

intellij 한글설정(UTF8)의 모든것

노루아부지 2022. 10. 31. 16:38

한국인이라면 피할 수 없는 것이 지긋지긋한 한글 설정입니다.

본 포스팅에서는 intellij에서 해야 하는 한글 설정에 대해 기술합니다.

 

intellij 한글설정 - 가상 머신(VM)

방법 1. intellij 실행 옵션에서 설정

  1. intellij 설치 경로/bin으로 이동
    ex) c:/Program Files/JetBrains/IntelliJ IDEA 2022.2.3/bin
  2. idea64.exe.vmoptions 파일 editor로 open
  3. 맨 아랫줄에 -Dfile.encoding=UTF-8 추가 후 저장
  4. Intellij 재실행

 

방법 2. Intellij 내부 옵션에서 설정

  1. Help > Edit Custom VM Options... 메뉴 클릭
  2. 맨 아랫줄에 -Dfile.encoding=UTF-8 추가 후 저장
  3. Intellij 재실행

 

 

intellij 한글 설정 - Editor File Encoding

  1. File > Settings 클릭
    Windows 단축키: Ctrl + Alt + S
    Mac 단축키: ⌘;
  2. Editor > File Encodings 클릭
  3. Global Encoding을 UTF-8로 변경
  4. Project Encoding을 UTF-8로 변경
  5. Default encoding for properties files를 UTF-8로 변경
  6. Transparent native-to-ascii conversion 체크

 

 

intellij 한글설정 - tomcat

  1. Run > Edit Configurations 클릭
  2. 왼쪽 목록에서 Tomcat 클릭
  3. VM options에 "-Dfile.encoding=UTF-8" 추가
728x90
loading