SNR IntelliSense
Full IntelliSense for CSHTML Razor components. Completions, hover, navigation, diagnostics, quick fixes, and rich HTML reports — all in one extension.
What You Get
- Auto-complete — tags, attributes, resources, segments
- Hover — property types, defaults, docs, source links
- Go to Definition —
Ctrl+Click any component or property
- Find References — track every usage across your workspace
- Diagnostics — real-time validation with 20+ diagnostic rules
- Quick Fixes — one-click fixes for common issues
- Resource Support — completions, validation, and navigation for CSS/JS/Less/Image resources
- Feature Flags — expiration tracking and stale detection
- HTML Reports — component, resources, and feature flag analysis with shareable standalone output
- Multi-Solution — cross-solution references with
<Solution:Component> syntax
- Tree View — sidebar explorer with search, filter, and usage counts
Commands
| Command |
Description |
CSHTML: Scan Workspace for Components |
Manual workspace scan |
CSHTML: Clear Component Cache |
Clear cached data |
CSHTML: Show Discovered Components |
List all components |
CSHTML: Generate Report (Current Solution) |
Component report for current solution |
CSHTML: Generate Report (Entire Workspace) |
Component report for all solutions |
CSHTML: Generate Resources Report |
Resource analysis |
CSHTML: Generate Feature Flag Report |
Feature flag status report |
Configuration
| Setting |
Default |
Description |
snrIntelliSense.scanOnStartup |
true |
Auto-scan on activation |
snrIntelliSense.scanRelativePath |
— |
Scan path relative to Git root |
snrIntelliSense.enableFileWatcher |
true |
Auto-update on file changes |
snrIntelliSense.fileWatcherDebounce |
500 |
Debounce delay (ms) |
snrIntelliSense.featureExpirationWarningDays |
30 |
Days before expiration warning |
snrIntelliSense.logLevel |
info |
Log level (off/error/warning/info/verbose) |
snrIntelliSense.repoUrl |
— |
Repository URL for file links in reports |
Installation
From VS Code Marketplace
Search for SNR IntelliSense in the Extensions view.
From VSIX
- Download the
.vsix file
- Extensions >
... > "Install from VSIX..."
Requirements
- VS Code 1.85.0+
- Workspace with
.cshtml files using the TryGetProperty pattern
License
MIT
| |