Code Navigation & IntelliSense
Code Navigation & IntelliSense
Advanced code navigation features and enhanced IntelliSense for C# development.
Overview
Section titled “Overview”C# Dev Tools enhances VS Code’s code navigation with:
- Inlay Hints - Type and parameter hints
- Unused Symbol Detection - Highlight dead code
- Code Lens - Contextual information above code elements
- Semantic Colors - Enhanced syntax highlighting
Key Features
Section titled “Key Features”Inlay Hints
Section titled “Inlay Hints”Show inferred types and parameter names inline:
- Type Hints: See types for
vardeclarations - Parameter Hints: See parameter names in method calls
Unused Symbol Detection
Section titled “Unused Symbol Detection”Identify dead code with visual indicators:
- Private methods not being used
- Unused properties and fields
- Reduced opacity for unused symbols
- Easy identification for cleanup
Code Lens
Section titled “Code Lens”Contextual information above code:
- Test Generation: “Create Tests” above methods
- Go to Implementation: Find interface implementations
- Enum Assignments: See where enums are used
Semantic Colors
Section titled “Semantic Colors”Enhanced syntax highlighting:
- Interfaces: Distinct color for interface types
- Enums: Highlight enum types
- Namespaces: Namespace coloring
Configuration
Section titled “Configuration”All features are configurable through VS Code settings or the extension Settings webview:
Enable/Disable Features
Section titled “Enable/Disable Features”- Enable Type Hints
- Enable Parameter Hints
- Highlight Unused Symbols
- Enable Code Lens features
- Configure semantic colors
Customization
Section titled “Customization”- Adjust unused symbol opacity
- Configure Code Lens options
- Customize semantic colors per theme
- Set color preferences
Quick Toggle
Section titled “Quick Toggle”Quickly toggle features via Command Palette:
- “Toggle C# Type Inlay Hints”
- “Toggle Unused Symbol Highlighting”
- “Toggle Code Lens”
Integration
Section titled “Integration”Features work seamlessly with:
- C# Language Server
- IntelliSense
- Code completion
- Refactoring tools
- Debugging features
Benefits
Section titled “Benefits”- Write code faster with hints
- Identify dead code easily
- Navigate code more efficiently
- Understand code structure better
- Maintain cleaner codebases