| ContentId | e6b33fcb-8240-49dd-b6ca-5412d6fa669a |
|---|---|
| DateApproved | 12/10/2025 |
| MetaDescription | Use Inline Chat in Visual Studio Code to make edits directly in the editor or get command suggestions in the terminal. |
| MetaSocialImage | ../images/shared/github-copilot-social.png |
With inline chat in Visual Studio Code, you can ask for generating code or making edits directly in the editor or get help with shell commands within the integrated terminal. Inline chat allows you to stay in the flow of your work without having to switch to a separate Chat view.
- Install the latest version of Visual Studio Code
- Access to GitHub Copilot
When you use editor inline chat, your prompt is scoped to the code in the active editor. Inline chat might use the content from other files in your workspace as context for your prompt.
To use editor inline chat:
-
Open a file in the editor.
-
Open editor inline chat by using the
kb(inlinechat.start)keyboard shortcut or by selecting Open Inline Chat from the Chat menu in the title bar. -
Type your prompt in the chat input field and press
kbstyle(Enter).[!TIP] Select a block of code in the editor to scope the prompt to that code.
-
VS Code shows a diff with the code suggestion inline in the editor. Accept or reject the changes.
-
Optionally, ask a follow-up question to get other suggestions or refine the results.
Tip
Attach context to your inline chat prompt to include relevant files, code symbols, or other context. Learn more about adding context to your chat prompt.
You can bring up terminal inline chat in the integrated terminal to get help with shell commands or ask terminal-related questions.
To use terminal inline chat:
-
Open the terminal in VS Code by selecting the View > Terminal menu item or using the
kb(workbench.action.terminal.toggleTerminal)keyboard shortcut. -
Start terminal inline chat by using the
kb(workbench.action.terminal.chat.start)keyboard shortcut or running the Terminal Inline Chat command in the Command Palette. -
Type your prompt in the chat input field and press
kbstyle(Enter). -
Review the response and select the Run (
kb(workbench.action.terminal.chat.runCommand)) to run the command in the terminalAlternatively, select Insert (
kb(workbench.action.terminal.chat.insertCommand)) to insert the command into the terminal and modify it before running.

