GitHub Copilot your AI-powered coding companion is now seamlessly woven into your Visual Studio IDE, enhancing your everyday tasks and bringing you the latest AI-driven coding experiences. Copilot is designed to elevate your efficiency, by offering personalized code suggestions, crafting your git commit messages, answering coding-related queries, and much more.
We’re thrilled to introduce the new, unified Copilot experience in Visual Studio 17.10, now available in Preview 3 (General availability in May). This combines the features of Copilot and Copilot Chat into one convenient package. Eliminating the need to install two separate extensions and bringing you more deeply integrated AI experiences in the future. Activate your GitHub Copilot subscription today, by signing in to GitHub or start a free trial for the latest AI experience.
| See Copilot in action |
note: Copilot in now in the top right side of your Visual Studio
What is GitHub Copilot?Copilot is your AI-powered coding companion designed to enhance your IDE experience. It helps you in the following ways:
GitHub Copilot offers an interactive experience throughout Visual Studio, through chat both in a separate window and directly in your code, allowing you to start a conversation or simply begin typing. Copilot provides context-aware code completions, suggestions, and even entire code snippets. It’s like having a pair programmer who can help you, write commit messages, debug your code, generate your unit tests and more. GitHub Copilot serves as a valuable resource for information and answers about your code, including documentation, definitions, references, error explanations, and best practices.
Accessing CopilotIf you are a customer in Visual Studio 17.10 Preview:
Get Visual Studio 2022 17.10 PreviewGetting StartedTo use the new Copilot extension, you’ll need a GitHub Copilot subscription. GitHub Copilot is free for verified students and for maintainers of popular open-source projects on GitHub. If you’re not a student or a maintainer of a popular open-source project, you can try GitHub Copilot for free with a one-time 30-day trial. After the free trial, a paid subscription is required for continued use.
Once you have Copilot installed, you can easily sign in and manage your Copilot directly from the top right corner of the title bar in Visual Studio 17.10.
Using CopilotCode CompletionsStart writing in the editor and Copilot will suggest code as you type.Tip: press "tab" to accept a suggestion.https://devblogs.microsoft.com/visualstudio/wp-content/uploads/sites/4/2024/03/Completions-for-blog-1.mp4Inline ChatUse Inline Chat will help you write your methods, classes, unit tests by converting your prompts to code. Open Inline by right-clicking in your text file and selecting “Ask Copilot” or `Alt + /``
Tip: Use"/" to state your intent or "#" to refer to your files(s). Like "/test for #filename"
https://devblogs.microsoft.com/visualstudio/wp-content/uploads/sites/4/2024/03/Recording-2024-01-11-072251.mp4Chat WindowAsk questions about your solution or files. Open from the Copilot Badge or CTRL + /, C.
Tip: Use #solution to refer to your active solution (only for C#) in Visual Studio
https://devblogs.microsoft.com/visualstudio/wp-content/uploads/sites/4/2024/03/solution-wide-view-1.mp4We Value Your FeedbackWe hope you find the new Copilot experience beneficial for your development needs. Your feedback and suggestions for improvement are always welcome. You can reach out to us through this survey or submit for feature requests here: Developer Community (visualstudio.com).
Happy coding!
The post Introducing the new Copilot experience in Visual Studio appeared first on Visual Studio Blog.