IntelliSense

Overview

IntelliSense is a set of advanced code-completion features that help developers write code faster, more accurately, and with fewer errors. It provides context‑aware suggestions, parameter info, quick info, and member lists while you type.

Using IntelliSense

IntelliSense is enabled by default in all supported languages. Common shortcuts:

ActionShortcut (Windows)Shortcut (macOS)
Trigger CompletionCtrl+SpaceControl+Space
Show Parameter InfoCtrl+Shift+SpaceControl+Shift+Space
Quick InfoCtrl+K, Ctrl+I⌥+Space
Navigate to DefinitionF12⌘+Click
public class Calculator
{
    public int Add(int a, int b)
    {
        return a + b;
    }

    public void Demo()
    {
        var calc = new Calculator();
        // Press Ctrl+Space after "calc."
        // IntelliSense shows: Add, Demo, etc.
        calc.
    }
}

Customization

Adjust IntelliSense behavior via Tools ► Options ► Text Editor ► [Language] ► IntelliSense. You can enable/disable:

Example: Enabling Snippets for C#.

{
  "CSharp": {
    "IntelliSense": {
      "ShowSnippets": true,
      "AutoComplete": true
    }
  }
}

Tips & Tricks

  1. Use Ctrl+J to force the completion list even when it doesn’t appear automatically.
  2. Press Tab or Enter to commit the highlighted suggestion.
  3. Type prop<tab> to insert a property snippet.
  4. Filter list by typing a dot . to show members of the current object.
  5. Navigate suggestions with Arrow Up/Down and Ctrl+Space to toggle the list.

FAQ

Why isn’t IntelliSense showing suggestions?

Ensure the file type is recognized, the project builds without errors, and the appropriate language service is active. Restart Visual Studio if needed.

Can I disable IntelliSense for a specific language?

Yes, go to Tools ► Options ► Text Editor ► [Language] ► IntelliSense and uncheck the options you don’t want.

How do I create custom code snippets?

Use Tools ► Code Snippets Manager or place .snippet files under %USERPROFILE%\Documents\Visual Studio 2022\Code Snippets.