본문 바로가기

Tip

[Copilot] IntelliJ로 Copilot 사용하기

안녕하세요 오늘은 Copilot 을 사용하는 방법에 대해 알아보겠습니다.

 

일정기간동안(60일)은 무료로 사용할 수 있고, 그 이후에는 결제가 되니 다들 유의바랍니다!

 

저는 IntelliJ 를 사용하고 있는데,  VisualStudio 에서도 사용할  수 있습니다.

 


코파일럿이란?

AI를 기반으로 개발자가 작성한 주석이나 코드, 함수명 등을 분석하여 코드를 자동완성

 

1. IntelliJ에서 Copilot 플러그인 설치 후 restart

 

 

 

2.코파일럿 가입

 

https://github.com/features/copilot/ 에 접속하여 가입을 진행합니다.

 

GitHub Copilot · Your AI pair programmer

GitHub Copilot works alongside you directly in your editor, suggesting whole lines or entire functions for you.

github.com

 

 

3. Github 계정으로 로그인합니다.

 

 

4. 활용을 해봅시다

 

자바 파일을 하나 만들고 test / sum 등의 키워드를 입력하니 아래와 같이 자동완성이 됩니다!

 


참고자료

https://github.com/github/copilot-docs/blob/main/docs/jetbrains/gettingstarted.md#getting-started-with-github-copilot-in-jetbrains