is now available! Read about the new features and fixes from September.

GitHub Copilot in VS Code settings reference

This article lists the configuration settings for GitHub Copilot in Visual Studio Code. For general information about working with settings in VS Code, refer to User and workspace settings, as well as the Variables reference for information about predefined variable support.

The team is continuously working on improving Copilot in VS Code and adding new features. Items marked with are experimental features. Try them out and share your feedback in our issues. Get more info about the feature lifecycle in VS Code.

General settings

  • github.copilot.editor.enableAutoCompletions: Automatically show inline completions.
  • github.copilot.enable: Enable or disable Copilot completions for specified languages.
  • github.copilot.editor.enableCodeActions: Controls if Copilot commands are shown as Code Actions when available.
  • github.copilot.renameSuggestions.triggerAutomatically: Controls whether Copilot generates suggestions for renaming.
  • chat.commandCenter.enabled : Controls whether the command center shows a menu for chat actions.
  • workbench.commandPalette.experimental.askChatLocation : Controls where the Command Palette should ask chat questions.
  • github.copilot.chat.search.semanticTextResults (Preview): Enables semantic search results in the Search view.

Chat settings

  • chat.editor.fontFamily: Font family in chat codeblocks.
  • chat.editor.fontSize: Font size in pixels in chat codeblocks.
  • chat.editor.fontWeight: Font weight in chat codeblocks.
  • chat.editor.lineHeight: Line height in pixels in chat codeblocks - use 0 to compute the line height from the font size.
  • chat.editor.wordWrap: Configure line wrapping in chat codeblocks.
  • github.copilot.chat.localeOverride: Specify a locale that Copilot should respond in, such as en or fr.
  • github.copilot.chat.fixTestFailure.enabled: Enables the preview /fixTestFailure intent in chat and delegates certain /fix invocations automatically if no testing setup is found.
  • github.copilot.chat.runCommand.enabled: Enables the /runCommand intent in the Chat view to run VS Code commands.
  • github.copilot.chat.useProjectTemplates: Use relevant GitHub projects as starter projects when using /new.
  • github.copilot.chat.terminalChatLocation: Controls where chat queries from the terminal should be opened.
  • github.copilot.chat.scopeSelection: Whether to prompt the user to select a specific symbol scope if the user uses /explain and the active editor has no selection.
  • github.copilot.chat.experimental.codeFeedback.instructions : A set of instructions that will be added to Copilot requests that provide feedback for code.
  • github.copilot.chat.experimental.codeGeneration.instructions : A set of instructions that will be added to Copilot requests that generate code.
  • github.copilot.chat.experimental.testGeneration.instructions : A set of instructions that will be added to Copilot requests that generate tests.
  • github.copilot.chat.experimental.codeGeneration.useInstructionFiles : Controls whether code instructions from .github/copilot-instructions.md are added to Copilot requests.
  • github.copilot.chat.experimental.generateTests.codeLens : Show Generate tests code lens for symbols that are not covered by current test coverage information.
  • github.copilot.chat.experimental.inlineChatCompletionTrigger.enabled : Experimental suggestion that triggers inline chat as soon as a line mostly consists of words.
  • github.copilot.chat.experimental.inlineChatHint.enabled : Hint for inline chat that shows once a line mostly consists of words.
  • github.copilot.chat.experimental.setupTests.enabled : Enables the experimental /setupTests intent and prompting in /tests generation.
  • github.copilot.chat.experimental.startDebugging.enabled : Enables the experimental /startDebugging intent in the Chat view to generate debugging configuration.
  • github.copilot.chat.experimental.temporalContext.enabled : Whether to include recently viewed and edited files with Copilot requests in inline chat.
  • chat.experimental.detectParticipant.enabled : Enable chat participant detection in the Chat view.

Inline chat settings

  • inlineChat.acceptedOrDiscardBeforeSave: Controls whether pending inline chat sessions in an editor prevent saving the file.
  • inlineChat.finishOnType: Whether to finish an inline chat session when typing outside of changed regions.
  • inlineChat.holdToSpeech: Whether holding the inline chat keybinding will automatically enable speech recognition.
  • inlineChat.mode: Configure if changes crafted with inline chat are applied directly to the document or are previewed first.

Notebook settings

  • notebook.experimental.generate : Enable the Generate action to create code cells with inline chat enabled in the notebook editor.

Accessibility settings

  • inlineChat.accessibleDiffView: Whether the inline chat also renders an accessible diff viewer for its changes.
  • accessibility.signals.chatRequestSent: Plays a signal - sound (audio cue) and/or announcement (alert) - when a chat request is made.
  • accessibility.signals.chatResponseReceived: Plays a sound / audio cue when the response has been received.
  • accessibility.verbosity.inlineChat: Provide information about how to access the inline editor chat accessibility help menu and alert with hints that describe how to use the feature when the input is focused.
  • accessibility.verbosity.inlineCompletions: Provide information about how to access the inline completions hover and Accessible View.
  • accessibility.verbosity.panelChat: Provide information about how to access the chat help menu when the chat input is focused.
  • accessibility.voice.keywordActivation: Controls whether the keyword phrase 'Hey Code' is recognized to start a voice chat session.
  • accessibility.voice.autoSynthesize: Controls whether a textual response should automatically be read out aloud when speech was used as input.
  • accessibility.voice.speechTimeout: The duration in milliseconds that voice speech recognition remains active after you stop speaking.