Development Solutions/Qt & QML

How to integrate copilot with Qt creator (Qt creator에 코파일럿 연동하는 방법)

studio ODOC 2024. 8. 20. 19:08
반응형

Qt creator에 github copilot 인증 및 적용하는 방법



 

 

(추천) Qt QML과 C++로 시작하는 크로스플랫폼 앱 개발 강의 - 입문편

https://inf.run/3XmSH

 

[입문] Qt QML과 C++로 시작하는 크로스플랫폼 앱 개발 강의 | 코드브릿지 - 인프런

코드브릿지 | Qt QML과 C++를 사용하여 크로스플랫폼 애플리케이션 개발에 입문할 수 있습니다. 해당 강의에서는 윈도우 응용 프로그램 타겟으로 개발을 진행합니다., [사진] 강의 주제 📖 이 강의

www.inflearn.com

 

 

개발 세팅을 좀 해보신 분들이라면

아래 링크를 참고하여 하나씩 세팅하면 됩니다.

https://doc.qt.io/qtcreator/creator-copilot.html

 

Use GitHub Copilot | Qt Creator Documentation

 

doc.qt.io

 

 

1. Plugin에서 copilot켜기

 

 

2. Preferences 메뉴에서 Copilot 탭을 선택하여 인증을 진행합니다.

 

2-1. node.js와 vim 설치

 

아래 사이트에 들어가서 하나씩 입력하시면 됩니다.

반응형

들어가기 귀찮으시다면 아래를 계속 읽어주세요!

https://github.com/github/copilot.vim

 

GitHub - github/copilot.vim: Neovim plugin for GitHub Copilot

Neovim plugin for GitHub Copilot. Contribute to github/copilot.vim development by creating an account on GitHub.

github.com

 

 

  1. Install Neovim or the latest patch of Vim (9.0.0185 or newer). (https://github.com/vim/vim)
  2. Install Node.js. (https://nodejs.org/en/download/package-manager)
  3. Install github/copilot.vim using vim-plug, packer.nvim, or any other plugin manager. Or to install manually, run one of the following commands:

vim 설치 (맥, 리눅스)

git clone https://github.com/github/copilot.vim.git \
  ~/.vim/pack/github/start/copilot.vim

 

vim 설치 (윈도우)

git clone https://github.com/github/copilot.vim.git `
  $HOME/vimfiles/pack/github/start/copilot.vim

 

 

3. node.js (node.js설치시 자동 완성)와 agent.js(vim설치시 자동 완성)의 경로 삽입

 

이 과정까지 끝내고 나면 위 사진의 Sign in 버튼까지 활성화될 것입니다.

활성화된 sign in 버튼을 누르면 깃헙 로그인 및 연동 페이지로 이동되며 그 단계까지 끝내면 완성입니다.

 

(추천) [초급] 6가지 프로젝트로 다지는 Qt 사용법 (+REST API)

https://inf.run/vLaL3

 

[초급] 6가지 프로젝트로 다지는 Qt 사용법 (REST API) 강의 | 코드브릿지 - 인프런

코드브릿지 | 6가지 프로젝트로 다지는 Qt QML과 C++ 실전 강의입니다. 다양한 형태의 UI 개발과 REST API 통신까지 아우르는 연습을 통해 실무 기본기를 닦아보세요!, 코딩테스트에만 쓰는 C++😂 다양

www.inflearn.com

 

[Eng. guide]

If you're familiar with setting up development environments, simply follow the steps in the link below to get started with GitHub Copilot in Qt Creator:

Qt Creator GitHub Copilot Setup Guide

1. Enable the Copilot plugin

First, you'll need to enable the GitHub Copilot plugin in Qt Creator.

2. Authenticate GitHub Copilot

Go to Preferences, select the Copilot tab, and follow the steps to authenticate your GitHub account.

2-1. Install Node.js and Vim

If you haven't installed Node.js and Vim, follow the instructions in the link below:

GitHub Copilot for Neovim/Vim Setup

Alternatively, if you'd prefer not to visit the site, here are the basic commands you can run:

For Vim on macOS/Linux:

 
git clone https://github.com/github/copilot.vim.git \ ~/.vim/pack/github/start/copilot.vim

For Vim on Windows:

 
git clone https://github.com/github/copilot.vim.git ` $HOME/vimfiles/pack/github/start/copilot.vim
 

Make sure to also install the latest version of Vim (9.0.0185 or newer) or Neovim, and Node.js. You can find the installation instructions here.

3. Configure paths for Node.js and agent.js

Once Node.js and Vim are installed, ensure that their paths are correctly set. This will help with autocompletion during setup.

After completing these steps, the Sign In button for Copilot in Qt Creator should be activated. Click it, sign in to GitHub, and finish the integration process.

That's it! You’re now ready to use GitHub Copilot with Qt Creator.

 

반응형