Inline chat
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.
Use inline chat when you want to make quick, targeted edits within the visible code context. For multi-step tasks, multi-file changes, or broader codebase exploration, use the Chat view instead.
Use editor inline chat
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 ⌘I (Windows, Linux Ctrl+I) 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 Enter.
TipSelect 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.
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.
Show a visual hint on text selection (Experimental)
When you select text in the editor, VS Code can display a visual hint to help you start inline chat for the selected code. Use the
off: no hint is shown when you select textgutter: the hint appears in the line number area next to your selectioneditor: the hint appears at the cursor position within your selection, integrated with the lightbulb for code actions

The hint displays an inline chat input box and actions for adding the selection to chat, explaining the code, and starting a code review of the selection.
This feature is experimental and works with the
hover.
Use terminal inline chat
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 ⌃` (Windows, Linux Ctrl+`) keyboard shortcut.
-
Start terminal inline chat by using the ⌘I (Windows, Linux Ctrl+I) keyboard shortcut or running the Terminal Inline Chat command in the Command Palette.
-
Type your prompt in the chat input field and press Enter.

-
Review the response and select the Run (⌘Enter (Windows, Linux Ctrl+Enter)) to run the command in the terminal
Alternatively, select Insert (⌥Enter (Windows, Linux Alt+Enter)) to insert the command into the terminal and modify it before running.
Change the model for inline chat
You can change the language model that is used for editor inline chat. By default, inline chat uses the same model as the Chat view, but you can configure a specific default model for inline chat.
To configure the default model for inline chat, use the
If you change the model during an inline chat session, the selection persists for the remainder of the session. After you reload VS Code, the model resets to the value specified in the
Learn more about choosing the right model for your task.
Use Quick Chat
Quick Chat provides a lightweight chat panel that opens at the top of the editor. Use it for quick questions and short interactions without opening the full Chat view or leaving your current workflow.
To open Quick Chat, press ⇧⌥⌘L (Windows, Linux Ctrl+Shift+Alt+L) or select Quick Chat from the Chat menu in the title bar.
Type your prompt and press Enter to get a response. Quick Chat supports the same #-mentions and @-mentions as the Chat view for adding context. Select the Open in Chat View button to continue the conversation in the full Chat view.