October 2024 (version 1.95)
Join VS Code at Microsoft Ignite or catch the sessions online. A year of VS Code, wrapped. Explore the highlights. October 2024 (version 1.95) Security update : The following extensions have security updates: ms-python.python and ms-vscode-remote.remote-ssh . Update 1.95.1 : The update addresses these issues . Update 1.95.2 : The update addresses these issues . Update 1.95.3 : The update addresses these issues . Downloads for 1.95.3 Windows x64 Arm64 macOS Universal Intel Apple silicon Linux .deb .rpm .tar.gz Arm instructions Snap Welcome to the October 2024 release of Visual Studio Code.
There are many updates in this version that we hope you'll like, some of the key highlights include: Copilot Edits - Iterate quickly on large changes across multiple files Copilot Chat in Secondary Side Bar - Keep Copilot Chat open and ready to-go while you work Multiple GitHub accounts - Log in to multiple GitHub accounts in VS Code simultaneously Copilot code reviews - Get a quick review pass or a deeper review of uncommitted changes Docstrings with Pylance - Generate docstring templates for classes or methods Preview settings indicator - View experimental and preview settings in the Settings editor Copilot extensibility - Showcasing Copilot extensibility in VS Code If you'd like to read these release notes online, go to Updates on code.visualstudio.com .
Insiders: Want to try new features as soon as possible? You can download the nightly Insiders build and try the latest updates as soon as they are available. GitHub Copilot Copilot features might go through different early access stages, which are typically enabled and configured through settings. Experimental - view the experimental features ( @tag:experimental ) This setting controls a new feature that is actively being developed and may be unstable.
It is subject to change or removal. Preview - view the preview features ( @tag:preview ) This setting controls a new feature that is still under refinement yet ready to use. Feedback is welcome. Start a code editing session with Copilot Edits Copilot Edits is currently in preview Setting : github.copilot.chat.edits.enabled Open in VS Code Open in VS Code Insiders With Copilot Edits, you can start an AI-powered code editing session where you can quickly iterate on code changes.
Based on your prompts, Copilot Edits proposes code changes across multiple files in your workspace. These edits are applied directly in the editor, so you can quickly review them in-place, with the full context of the surrounding code. Copilot Edits is great for iterating on large changes across multiple files. It brings the conversational flow of Copilot Chat and fast feedback from Inline Chat together in one experience.
Have an ongoing, multi-turn chat conversation on the side, while benefiting from inline code suggestions. Get started with Copilot Edits in just three steps: Start an edit session by selecting Open Copilot Edits from the Chat menu, or press . Add relevant files to the working set to indicate to Copilot which files you want to work on. Enter a prompt to tell Copilot about the edit you want to make! For example, Add a simple navigation bar to all pages or Use vitest instead of jest .
Get more details about Copilot Edits in our documentation. Try it out now and provide your feedback through our issues ! Chat in the Secondary Side Bar The new default location for the Chat view is the Secondary Side Bar . By using the Secondary Side Bar, you can have chat open at any time, while you still have other views available to you like the File Explorer or Source Control. This provides you with a more integrated AI experience in VS Code.
You can quickly get to chat by using the ⌃⌘I (Windows, Linux Ctrl+Alt+I ) keyboard shortcut. With the introduction of the new Chat menu next to the Command Center, bringing up the Secondary Side Bar with chat is just a click away: The chat menu gives you access to the most common tasks for Copilot Chat. If you wish to hide this menu, a new setting chat.commandCenter.enabled Open in VS Code Open in VS Code Insiders is provided.
Note: If you had previously installed GitHub Copilot, a view will show up at the location you had Chat before that enables you to restore the Chat view to the old location, if that works better for you. Copilot code reviews Copilot code reviews are currently in preview With GitHub Copilot code review in Visual Studio Code, you can now get fast, AI-powered feedback on your code as you write it, or request a review of all your changes before you push.
GitHub Copilot code review in Visual Studio Code is currently in preview. Try it out and provide feedback through our issues . There are two ways to use Copilot code review in VS Code: Review selection : for a quick review pass, select code in the editor and either select Copilot > Review and Comment from the editor context menu, or use the GitHub Copilot: Review and Comment command from the Command Palette. (This feature is in preview.) Review changes : for a deeper review of all uncommitted changes, select the Copilot Code Review button in the Source Control view, which you can also do in your pull request on GitHub.com. (Join the waitlist , open to all Copilot subscribers) Copilot's feedback shows up as comments in the editor, attached to lines of your code.
Where possible, the comments include actionable code suggestions, which you can apply in one action. To learn more about Copilot code review, head to the GitHub code review documentation . Copilot's quick review on code selection can provide feedback that match the specific practices of your team or project, provided you give the right context. When reviewing selections with custom review instructions, you can define those specific requirements via the github.copilot.chat.reviewSelection.instructions Open in VS Code Open in VS Code Insiders setting.
Similar to code-generation and test-generation instructions , you can either define the instructions directly in the setting, or you can store them in a separate file and reference it in the setting. The following code snippet shows an example of review instructions: "github.copilot.chat.reviewSelection.instructions" : [ { "text" : "Logging should be done with the Log4j ." }, { "text" : "Always use the Polly library for fault-handling." }, { "file" : "code-style.md" // import instructions from file `code-style.md` } ], An example of the contents of the code-style.md file: Private fields should start with an underscore.
A file can only contain one class declaration. Automatic chat participant detection Setting : chat.experimental.detectParticipant.enabled Open in VS Code Open in VS Code Insiders GitHub Copilot has several built-in chat participants, such as @workspace , and you may have installed other extensions that contribute chat participants too. To make it easier to use chat participants with natural language, Copilot Chat will automatically route your question to a suitable participant or chat command, when possible.
If the automatically selected participant is not appropriate for your question, you can still select the rerun without link at the top of the chat response to resend your question to Copilot. This month, we also added an action to let you skip this detection behavior on a per-request basis. The default action when you enter a chat prompt is Send and dispatch , which includes participant detection. If you choose Send , the request is sent directly to Copilot Chat and it won't be automatically dispatched to a chat participant.
You can also disable automatic participant detection entirely with the chat.experimental.detectParticipant.enabled Open in VS Code Open in VS Code Insiders setting. Control current editor context Copilot Chat has always automatically included your current selection or the currently visible code as context with your chat request. Large Language Models (LLMs) are generally good at understanding whether a piece of context is relevant.
But some
The rest of this page is on the live site.