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.
- Auto-complete of identifiers, keywords, and snippets.
- Parameter info displays method signatures.
- Quick Info shows documentation for symbols.
- Code suggestions adapt to the current project context.
Using IntelliSense
IntelliSense is enabled by default in all supported languages. Common shortcuts:
| Action | Shortcut (Windows) | Shortcut (macOS) |
|---|---|---|
| Trigger Completion | Ctrl+Space | Control+Space |
| Show Parameter Info | Ctrl+Shift+Space | Control+Shift+Space |
| Quick Info | Ctrl+K, Ctrl+I | ⌥+Space |
| Navigate to Definition | F12 | ⌘+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:
- Show completion list after a character is typed.
- Auto list members.
- Parameter information.
- Filtering by name or kind.
Example: Enabling Snippets for C#.
{
"CSharp": {
"IntelliSense": {
"ShowSnippets": true,
"AutoComplete": true
}
}
}
Tips & Tricks
- Use
Ctrl+Jto force the completion list even when it doesn’t appear automatically. - Press
TaborEnterto commit the highlighted suggestion. - Type
prop<tab>to insert a property snippet. - Filter list by typing a dot
.to show members of the current object. - Navigate suggestions with
Arrow Up/DownandCtrl+Spaceto 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.