Ghost text #175305
Replies: 2 comments
Cursor uses a codebase-wide index (they run embeddings over the entire project) to let the model "know" about your project context. That’s why its ghost text feels proactive: even without you typing much, it can complete functions or call utilities from other files, because it already indexed them.
Copilot primarily looks at the current file context and your recent editor history. It doesn’t automatically index your entire repo in the same way Cursor does. Out-of-the-box, ghost text is reactive: it predicts completions based on what you type, not proactively from the whole repo.
Right now, there isn’t a 1:1 equivalent to Cursor’s automatic indexing. But you can extend Copilot’s context in a few ways: GitHub Copilot Chat with “/workspace” or “/explain” commands: /explain this function uses utils.js Copilot Chat then searches your workspace. It’s more manual than Cursor, but closer. Copilot for Business/Enterprise with “codebase indexing” (Beta): Manual context feeding:
If you want Cursor-style proactive ghost text → GitHub Copilot alone won’t give you the same “always-aware” feel unless you’re on Copilot Enterprise with code indexing enabled. If you’re on the standard Copilot → you’ll mostly rely on inline completions + Copilot Chat, which are contextual but not repo-wide by default. |
|
Copilot isn't repo wide as compared to cursor (The indexing is much narrower by default). You could use the copilot's repo level instructions file to provide context about your code base, you can follow this guide: https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions. You could add some context to that like Project Context
You're manually creating the index of your repo, which would closely match the cursor's index (which is built automatically). Copilot reads this file and uses it to inform suggestions across your entire project. It's not dynamic like Cursor's real time indexing, but it bridges the gap for cross file awareness without needing enterprise features. If repo wide proactive completions are absolutely necessary to your workflow, standard Copilot won't fully match Cursor's experience yet, but the suggested approach might get you closer. |
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Question
Copilot Feature Area
General
Body
I was using Cursor and now switching to Github Copilot. I think Cursor really did good in terms of ghost texting, because its ghost texting is based on the codebase index instead of based on current file context, and do not need your input to do predicting code. How can I get the same experience using Github Copiot? How can ghost text leverage code index resut?
All reactions