A VS Code extension that shows baseline compatibility information for web features when you hover over them in your code.
Features
Hover Information: Hover over web features in CSS, JavaScript, TypeScript, HTML, JSX, and TSX files to see baseline compatibility
Baseline Status: Shows whether a feature is widely available, newly available, or has limited availability
Browser Support: Displays browser version requirements
Quick Links: Direct links to specifications and Can I Use data
Supported Web Features
CSS Features
CSS Grid Layout
CSS Flexbox
CSS Custom Properties (Variables)
CSS Container Queries
CSS Subgrid
JavaScript Features
Fetch API
Async/Await
Optional Chaining (?.)
Nullish Coalescing (??)
Web Components
Installation
Clone this repository
Run npm install in the extension directory
Run npm run compile to build the extension
Press F5 to open a new Extension Development Host window
Test the extension by opening a file with web features
Usage
Simply hover over web features in your code:
/* Hover over 'grid' to see CSS Grid baseline info */
.container {
display: grid;
grid-template-columns: 1fr 1fr;
}
// Hover over 'fetch' to see Fetch API baseline info
const response = await fetch('/api/data');
// Hover over '?.' to see Optional Chaining baseline info
const value = obj?.property?.nested;
Configuration
The extension can be configured through VS Code settings:
baselineMap.enabled: Enable/disable the extension (default: true)
baselineMap.showIcons: Show status icons in hover information (default: true)