3 ms·
Copilot does that in a really clever way already: any time it performs a completion it looks at other nearby files in the project and tries to find pieces of co
by simonw 2y ago
Copilot does that in a really clever way already: any time it performs a completion it looks at other nearby files in the project and tries to find pieces of code that look semantically similar to the area you are editing, then includes those snippets in its prompt.
This works well as a general rule, but sometimes it doesn't fine the right snippets - which is why I occasionally help it out through copy and paste.
- verdverm 2y agoAs described, that seems to miss out on files that are far away through imports, and if not similar to existing code, such as when writing unique code. My main thoughts behind this are that 1. The LLMs tend to hallucinate library functions 2. I don't want to have to copy and paste a schema