Shared Copilot context between two open instances of Jetbrains IDEs? #61482
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes, I can confirm that this behavior is intended. GitHub Copilot uses a technique called "code context sharing" to improve the quality of its suggestions. Code context sharing means that Copilot takes into account the code that you are currently editing in other JetBrains IDEs, even if those IDEs are open to different projects. This allows Copilot to provide more relevant and accurate suggestions. For example, if you are editing a file in Webstorm and you have IntelliJ open to a different project, Copilot will be able to see the code that you are editing in IntelliJ and use that information to generate suggestions for your file in Webstorm. The use case for this behavior is to help you write more consistent and idiomatic code. If you are working on a project that uses a particular library or framework, Copilot can use the code that you are editing in other IDEs to learn about that library or framework and generate suggestions that are specific to that library or framework. If you do not want Copilot to use code context sharing, you can disable it in the Copilot settings. To do this, open the Copilot settings in your JetBrains IDE and uncheck the "Enable code context sharing" checkbox. Here are the steps on how to disable code context sharing in Copilot:
Once you have disabled code context sharing, Copilot will no longer use the code that you are editing in other JetBrains IDEs to generate suggestions. However, you may find that the quality of the suggestions decreases. I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
Yes, I can confirm that this behavior is intended. GitHub Copilot uses a technique called "code context sharing" to improve the quality of its suggestions. Code context sharing means that Copilot takes into account the code that you are currently editing in other JetBrains IDEs, even if those IDEs are open to different projects. This allows Copilot to provide more relevant and accurate suggestions.
For example, if you are editing a file in Webstorm and you have IntelliJ open to a different project, Copilot will be able to see the code that you are editing in IntelliJ and use that information to generate suggestions for your file in Webstorm.
The use case for this behavior is to help you w…