Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Microsoft/vscode/llms.txt
Use this file to discover all available pages before exploring further.
Overview
IntelliSense is VS Code’s intelligent code completion system that provides context-aware suggestions as you type. It combines syntax understanding, type information, and API documentation to help you write code faster and with fewer errors.How It Works
IntelliSense is powered by language services that analyze your code in real-time. The suggestion engine uses fuzzy matching and scoring to provide the most relevant completions.Triggering IntelliSense
Automatic Trigger
IntelliSense appears automatically as you type. Most languages trigger on identifier characters.
Manual Trigger
Press
Ctrl+Space (Windows/Linux) or Cmd+Space (macOS) to manually invoke IntelliSenseSuggestion Widget
The suggestion widget provides rich information about each completion item:Widget Features
- Icon: Indicates the type of symbol (function, variable, class, etc.)
- Label: The main suggestion text
- Details: Additional context like type information
- Documentation: Full documentation in the details pane
Context Keys
The suggestion widget behavior is controlled by context keys:Keyboard Shortcuts
| Action | Windows/Linux | macOS |
|---|---|---|
| Trigger IntelliSense | Ctrl+Space | Cmd+Space |
| Trigger parameter hints | Ctrl+Shift+Space | Cmd+Shift+Space |
| Accept suggestion | Tab or Enter | Tab or Enter |
| Insert suggestion | Ctrl+Enter | Cmd+Enter |
| Toggle details | Ctrl+Space (when open) | Cmd+Space (when open) |
| Navigate suggestions | Up/Down arrows | Up/Down arrows |
| Select suggestion | Enter | Enter |
Configuration
Quick Suggestions
Control when IntelliSense appears automatically:The
InternalQuickSuggestionsOptions interface in the source code defines how suggestions are triggered in different contexts.Suggestion Behavior
Filtering and Sorting
Customize how suggestions are filtered and sorted:IntelliSense Types
Method and Function Signatures
View parameter information while typing function calls:Type Information
Hover over variables and expressions to see type information:Documentation
View inline documentation for symbols:Language-Specific IntelliSense
TypeScript/JavaScript
Python
HTML/CSS
Advanced Features
Suggestion Memory
VS Code remembers your suggestion selections to improve future suggestions:Commit Characters
Certain characters automatically accept the current suggestion:. after selecting a suggestion will insert the suggestion and the dot:
Inline Completions
IntelliSense integrates with inline completion providers like GitHub Copilot:Troubleshooting
Common Issues
-
No suggestions appearing
- Verify
editor.quickSuggestionsis enabled - Check that the language mode is correctly detected
- Ensure language extensions are installed
- Verify
-
Slow suggestions
- Increase
editor.quickSuggestionsDelay - Check for memory-intensive extensions
- Consider excluding large directories from search
- Increase
-
Incorrect suggestions
- Update language extensions
- Check type definitions are available
- Verify workspace configuration
Performance
IntelliSense is optimized for performance with several techniques:The completion engine uses cancellation tokens and incremental updates to maintain responsiveness even with large completion lists.