Code Navigation & IntelliSense
Inlay Hints
Show inferred types and parameter names directly in your code.
Type Hints
Section titled “Type Hints”What Are Type Hints?
Section titled “What Are Type Hints?”Type hints display the inferred type for var declarations:
var customer = new Customer(); // var: Customervar age = 42; // var: intvar items = GetItems(); // var: List<Item>Enabling Type Hints
Section titled “Enabling Type Hints”- Open Settings (
Ctrl+,) - Search for
csharp-dev-tools.inlayHints.enableTypeHints - Enable the setting
Or use Command Palette: “Toggle C# Type Inlay Hints”
Benefits
Section titled “Benefits”- Understand types at a glance
- Keep convenience of
var - Reduce mental overhead
- Better code comprehension
Parameter Hints
Section titled “Parameter Hints”What Are Parameter Hints?
Section titled “What Are Parameter Hints?”Parameter hints show parameter names in method calls:
DoSomething(/* value: */ 42, /* name: */ "test", /* enabled: */ true)Enabling Parameter Hints
Section titled “Enabling Parameter Hints”- Open Settings (
Ctrl+,) - Search for
csharp-dev-tools.inlayHints.enableParameterHints - Enable the setting
Benefits
Section titled “Benefits”- Understand method arguments
- Reduce need to check method signatures
- Improve code readability
- Especially helpful for boolean parameters
Customization
Section titled “Customization”Color Configuration
Section titled “Color Configuration”Customize hint colors in settings.json:
{ "csharpStuff.inlayHints.typeColor": { "dark": "#606060", "light": "#808080" }}Font Style
Section titled “Font Style”Hints use VS Code’s inlay hint styling by default. Customize via:
{ "editor.inlayHints.fontSize": 11, "editor.inlayHints.fontFamily": "monospace"}Performance
Section titled “Performance”Inlay hints are:
- Computed on demand
- Cached for performance
- Updated as you type
- Lightweight and fast
Best Practices
Section titled “Best Practices”- Use type hints to understand complex LINQ queries
- Enable parameter hints for methods with many parameters
- Customize colors to match your theme
- Toggle off when not needed for cleaner view
Troubleshooting
Section titled “Troubleshooting”Hints Not Appearing
Section titled “Hints Not Appearing”- Ensure C# Language Server is running
- Check settings are enabled
- Restart VS Code if needed
- Verify file is part of project
Performance Issues
Section titled “Performance Issues”- Disable if experiencing slowdowns
- Check C# Language Server status
- Reduce hint frequency in settings