0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【GitHub Copilot】Copilotのナレッジファイルを追加してサポートを強化する

0
Last updated at Posted at 2024-05-17

やったこと

  1. .github/copilot.mdを追加
  2. VSCodeで常にcopilot.mdを開いた状態で作業を行う

copilot.mdの内容

  1. そのリポジトリ内で良く使われるコード
  2. 専用のコーディング使用
  3. 使用している言語のSpecificationリンク

理由

1. VSCodeで開きっぱなしのファイル内容を読む

オープンされている非アクティブなタブ
直近20個のタブをコンテキストとして与えられる

参考: https://qiita.com/yoda_naan/items/a5c53acc790586cd4fd9

2. Copilot用のファイルを作っておく

5/13に開催されていたGitHub CXO来日記念イベント:ちょっと未来の開発者体験を知るにて
株式会社プレイドの日鼻氏が話していた内容をメモしたのが下記

prompt.mdを作り、README.mdとともに開いておく

prompt.mdファイルをプロジェクト配下におく
 →コードとしてナレッジを貯めていく

prompt.mdの内容
例えば、Specificationのリンクをそのまま貼り付ける、サンプルコードを貼り付ける
基本的にはGitHubにあるリポジトリの内容をコピーしてくる
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?