How to Stop GitHub Copilot Suggestions From Overlapping With IntelliSense
🔍 WiseChecker

How to Stop GitHub Copilot Suggestions From Overlapping With IntelliSense

When you write code in Visual Studio or VS Code, both GitHub Copilot and IntelliSense try to help at the same time. This causes overlapping suggestions where Copilot inline predictions cover up or compete with IntelliSense completion lists. The result is a confusing editor where you see two sets of suggestions and cannot easily pick the one you want. This article explains why the overlap happens and gives you specific settings to separate or disable one of the two features.

Key Takeaways: Stop Copilot and IntelliSense Overlap

  • VS Code settings.json > editor.inlineSuggest.enabled: Set to false to turn off Copilot inline suggestions and use only IntelliSense completion list.
  • VS Code settings.json > github.copilot.enable: Set to false per language to disable Copilot completely for specific file types.
  • Visual Studio > Tools > Options > Text Editor > C# > IntelliSense: Disable completion commit characters to prevent IntelliSense from auto-inserting when you press Tab for Copilot.

ADVERTISEMENT

Why Copilot and IntelliSense Overlap in the Editor

GitHub Copilot and IntelliSense are two separate suggestion engines that run at the same time in most modern code editors. IntelliSense provides a dropdown list of completions based on your code context, types, and namespaces. Copilot provides inline ghost text that predicts whole lines or blocks of code based on pattern matching from millions of public repositories. When both features are active, the editor displays the IntelliSense popup and the Copilot ghost text simultaneously. Pressing Tab or Enter can trigger either system depending on which one has focus. This overlap creates confusion because you might accept a Copilot suggestion when you intended to pick an IntelliSense item, or vice versa.

The root cause is that both features bind to the same keyboard shortcuts by default. Tab and Enter are the primary confirmation keys for both IntelliSense completions and Copilot inline suggestions. When the IntelliSense list is open, Tab inserts the selected IntelliSense item. When the list is closed and Copilot ghost text is visible, Tab accepts the Copilot suggestion. This dual binding leads to accidental acceptances and a split-second decision conflict every time you press Tab. Additionally, some editors show the Copilot ghost text directly on top of the IntelliSense popup, making the list unreadable.

Steps to Separate Copilot and IntelliSense in VS Code

In VS Code, you can control whether Copilot inline suggestions appear and whether IntelliSense completions pop up. The most effective method is to disable Copilot inline suggestions and rely only on IntelliSense, or to disable IntelliSense for specific languages and use only Copilot. Below are the exact settings to change.

  1. Open VS Code Settings
    Press Ctrl + , to open the Settings tab. Alternatively, go to File > Preferences > Settings.
  2. Search for Inline Suggestions
    In the search bar at the top of Settings, type inline suggestions. This filters to the editor.inlineSuggest.enabled setting.
  3. Disable Inline Suggestions
    Uncheck the checkbox for Editor: Inline Suggestions Enabled. This turns off all inline ghost text, including Copilot. IntelliSense completions still appear as a dropdown list.
  4. Verify Copilot Is Still Active
    Open a code file. You should no longer see gray ghost text. Press Ctrl + Space to manually trigger IntelliSense. Copilot suggestions are still available through the Copilot panel on the right side of the editor.

If you want to keep inline suggestions but disable IntelliSense for certain languages, use the editor.quickSuggestions setting. Set it to off for languages where you prefer only Copilot suggestions.

Disable Copilot for Specific Languages in VS Code

  1. Open settings.json
    Press Ctrl + Shift + P, type settings.json, and select Preferences: Open Settings (JSON).
  2. Add Language Override
    Insert the following block inside the JSON object:
    "github.copilot.enable": {
        "python": false,
        "javascript": false,
        "typescript": true
    }

    Replace the language keys with the ones you use. Setting a language to false disables Copilot for that file type while IntelliSense continues to work.

  3. Save the File
    Press Ctrl + S. Copilot immediately stops showing suggestions for the disabled languages.

ADVERTISEMENT

Steps to Separate Copilot and IntelliSense in Visual Studio

In Visual Studio, the overlap is usually caused by the IntelliSense completion list appearing while Copilot inline predictions are visible. The fix involves changing how IntelliSense handles the Tab key and the completion commit behavior.

  1. Open Visual Studio Options
    Go to Tools > Options from the main menu.
  2. Navigate to Text Editor Settings
    In the Options dialog, expand Text Editor and then expand the language you work with, for example C#. Click IntelliSense.
  3. Disable Completion Commit Characters
    Uncheck Show completion list after a character is typed. This prevents IntelliSense from opening automatically. Press Ctrl + Space to manually open the list when you need it. Copilot inline suggestions remain visible and do not conflict.
  4. Change Tab Behavior
    In the same IntelliSense section, set Tab behavior to None. This stops IntelliSense from inserting a completion when you press Tab. Copilot then uses Tab to accept its own suggestions without interference.
  5. Apply and Test
    Click OK. Open a code file and type a few characters. You should see only Copilot ghost text. Press Tab to accept the Copilot suggestion. Press Ctrl + Space to open IntelliSense manually when needed.

If Copilot and IntelliSense Still Overlap After Settings Changes

Copilot Ghost Text Covers the IntelliSense Popup

In some themes or editor versions, the Copilot ghost text appears directly over the IntelliSense popup, making the list unreadable. To fix this, change the VS Code color theme or increase the IntelliSense popup z-index. In VS Code, go to Settings, search for editor.suggest.preview, and set it to false. This hides the preview that sometimes overlaps with ghost text. Alternatively, switch to a theme with higher contrast for suggestion widgets, such as the default Dark+ theme.

Both Features Accept on the Same Key

If you press Tab and sometimes get an IntelliSense completion and sometimes a Copilot suggestion, the keyboard shortcut for Tab is shared. In VS Code, you can change the Copilot accept shortcut. Go to File > Preferences > Keyboard Shortcuts, search for github.copilot.accept, and change it to a different key combination, for example Ctrl + Enter. IntelliSense still uses Tab. In Visual Studio, go to Tools > Options > Environment > Keyboard, search for Edit.CompleteWord, and change its shortcut to something other than Tab.

Copilot Stops Working After Disabling Inline Suggestions

Disabling editor.inlineSuggest.enabled in VS Code turns off all inline ghost text, which includes Copilot. Copilot suggestions are still available through the Copilot panel on the right sidebar. To get Copilot inline suggestions back, re-enable the setting. If you want to keep inline suggestions off but still see Copilot suggestions in a separate pane, use the Copilot Chat extension instead of the inline feature.

Item VS Code Method Visual Studio Method
Disable Copilot inline suggestions editor.inlineSuggest.enabled = false Not directly available; use Tools > Options > IntelliSense to manage Tab behavior
Disable IntelliSense auto-popup editor.quickSuggestions set to off per language Uncheck Show completion list after a character is typed
Change Tab key behavior Remap keyboard shortcut for github.copilot.accept Set Tab behavior to None in IntelliSense options
Use Copilot without inline ghost text Open Copilot panel from activity bar Use Copilot Chat window

Now you can control exactly when Copilot inline suggestions and IntelliSense completions appear. Start by disabling the feature you use less often. For most developers, turning off Copilot inline suggestions and relying on IntelliSense plus manual Copilot panel access gives the cleanest editing experience. If you prefer Copilot, disable the IntelliSense auto-popup and use Ctrl + Space to summon completions only when needed. Test both configurations for a full day before deciding which one fits your workflow.

ADVERTISEMENT