DevTools

How can I make template chracters when I generate specific file? / IntelliJ에서 특정 파일 format template 넣어주기

GreatSaiyaman 2022. 4. 25. 12:14

여럿이서 일하다 보면 특정 tamplate을 파일 상단에 삽입하여 작업해야 할 경우가 있습니다.

우선 Setting에 들어가셔서 좌측 상단의 검색란에서 File and CodeTemplate를 선택합니다.

IntelliJ -> 상단 좌측의 File탭 -> Setting 탭 클릭

그 후 우측의 Include 탭을 눌러서, + 버튼을 눌러서, 자신이 어떠한 파일을 생성할 때에 주석을 자동 생성하고 싶은지를 정합니다.

 

참고로, 주석에 대한 포맷은 아래 공식 홈페이지에서 확인하시고 포맷을 적어주시면 됩니다.

 

감사합니다.

 


출처 및 참고

 

IntelliJ IDEA 2016.3 Help :: Creating and Editing File Templates

Meet IntelliJ IDEA Live Templates Creating and Editing File Templates IntelliJ IDEA supports several ways of creating file templates : Creating a file template from scratch Creating a file template from an existing one Creating a file template from a file Creating and referencing include templates C...

www.jetbrains.com

 
이미지 썸네일 삭제
File template variables - Help | IntelliJ IDEA

www.jetbrains.com