Comments (4)
- Generating code with comment
Try to give it more hints that the next line is code. For example,
- add an empty line after the comment:
// do something // cursor here
- instruct it to generate code
or
// a function to do something // cursor here
// do something func// cursor here
- Broken code
Currently, GitHub Copilot has the ability to generate suggestions based on the opened files in the same workspace. In order for GitHub Copilot to detect an opened file, language server notifications need to be sent to the language server when a file is opened. It sounds simple, but Copilot for Xcode can't get those notifications from Xcode. As a result, it can only detect that a file is opened when the user manually switches to the tab of the file and clicks into the file (to change focused element, if you are opening a file from the side bar) for the first time.
Additionally, if a file is already open prior to the extension launch, the user will also need to switch to the file manually in order for it to recognize that it is open.
from copilotforxcode.
Thank you for the quick response, it's very helpful indeed.
If I understand correctly number 2, if I work on something that depends on 10 other files, and I open all those files, that should be enough to improve copilot results?
from copilotforxcode.
Theoretically, yes, but sometimes even with the other files opened, GitHub Copilot can still generate incorrect suggestions even in VSCode.
from copilotforxcode.
Thank you 🙏
from copilotforxcode.
Related Issues (20)
- [Enhancement]: Ability to read clipboard contents in a custom command HOT 3
- [Enhancement]: Make the chat panel close button bigger HOT 9
- [Enhancement]: Support Copilot chat HOT 22
- [Bug]: GPT-4 model doesn't use GPT-4 HOT 1
- [Enhancement]: Can integrate locally deployed LLM HOT 10
- [Help Wanted]: Redeeming PLUS activation key throws an SSL Error HOT 5
- [Bug]: Chat doesn't seem to have access to the code HOT 6
- [Bug]: Could not communicate with a helper app HOT 4
- [Bug]: Chat window scroll to top when done processing output HOT 10
- [Bug]: Using Accept Suggestion with Tab has some weird side-effects HOT 11
- [Help Wanted]: I have a Copilot subscription but can't get it running in Xcode HOT 29
- [Bug]: hotkey to toggle widget doesn't focus on chat's text box HOT 3
- [Bug]: Suggestion feature is disabled for non-gitignored files. HOT 13
- [Help Wanted]: How to uninstall GopilotForXcode HOT 2
- [Help Wanted]: Missing key bindings for Codeium installation HOT 2
- [Help Wanted]: Not Getting Suggestions in JUCE C++ projects HOT 7
- [Enhancement] Sourcegraph Cody AI support HOT 3
- [Enhancement]: Chat panel to support fullscreen mode and menu bar for window management HOT 5
- [Enhancement]: Close on Escape HOT 1
- [Help Wanted]: building previews failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copilotforxcode.