Toggle Tab Completion
A simple but powerful VS Code extension to quickly enable or disable all code completions—both standard tab completions and "ghost text" inline suggestions— for GitHub Copilot with a single command.
Overview
Modern code editors and AI assistants provide amazing autocompletion features. However, sometimes you need to focus or prevent suggestions from appearing. Manually toggling two separate settings (editor.tabCompletion
and editor.inlineSuggest.enabled
) is tedious. This extension solves that by binding both settings to a single, convenient status bar button and hotkey.
Features
- One-Click Status Bar Toggle: A clear icon in your status bar shows you if completions are active (
✔
) or inactive (✘
). Just click it to toggle.
- Synchronized Settings: Instantly enables or disables both standard Tab Completion and Ghost Text (inline suggestions) together.
- Smart Scope Detection: The extension intelligently updates your settings at the Global level and, if a Workspace setting already exists, at the Workspace level.
- Customizable Hotkey: Comes with a convenient default hotkey (
Ctrl+q Ctrl+tab
), which can be easily changed in VS Code's Keyboard Shortcuts editor.
Installation
- Launch Visual Studio Code.
- Go to the Extensions view (
Ctrl+Shift+X
or Cmd+Shift+X
).
- Search for Toggle Completion.
- Click Install.
Usage
Once installed, you can toggle completions in two ways:
- Status Bar: Click the
✔ All Completions
or ✘ All Completions
text in the status bar (usually in the bottom-right corner).
- Command Palette: Open the Command Palette (
Ctrl+Shift+P
or Cmd+Shift+P
), search for "Toggle All Completions", and press Enter.
- Keyboard Shortcut: Use the default hotkey
Ctrl+q Ctrl+tab
(or Cmd+q Cmd+tab
on macOS).
Customizing the Hotkey
You can change the default keyboard shortcut by going to File > Preferences > Keyboard Shortcuts (or Ctrl+K Ctrl+S
) and searching for the command toggle-tab-completion.toggle
.
Extension Settings
This extension does not add its own unique settings. Instead, it modifies the following built-in VS Code settings:
editor.tabCompletion
(values: "on" or "off")
editor.inlineSuggest.enabled
(values: true or false)
Release Notes
For detailed release notes, please see the CHANGELOG.md file.
License
This project is licensed under the MIT License. See the LICENSE file for details.