yuhattor / copilot-patterns

This document is a compilation of best practices for AI-Native development, curated by our community. Discover useful tips and tricks for leveraging tools to improve your AI development process.

Home Page:https://www.ai-native.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pattern: Pin the files you need

yuhattor opened this issue · comments

Description

The effectiveness of GitHub Copilot depends on the context provided to it. GitHub Copilot searches through open tabs by text similarity, sending snippets to the Large Language Model (LLM), which itself is a complete black box. Therefore, we must be mindful of the context we want to provide. In programming, files such as declaration files (d.ts), test files, and interface files contain a wealth of context information. By using Visual Studio Code's pinning feature, you can easily access these files when needed and provide information to GitHub Copilot more efficiently.

https://www.ai-native.dev/docs/client-side-tips/pin-the-file-you-need