A VSCode extension that dims all lines except the currently focused line, helping you maintain focus on your current work.
- Focus Mode: Dims all lines except the one with cursor focus
- Regex Mode: Dims lines matching regex patterns
- Toggle Command: Quickly enable/disable dimming with
Ctrl+Shift+P> "Toggle DimSumLines Dimming" - Mode Switching Commands: Quickly change between focus and regex modes
- Regex Pattern Management: Add/clear regex patterns via commands
- Status Bar Indicator: Shows current dimming status in bottom right
- Configurable opacity level (0.1 to 0.9)
- Automatically updates as you move your cursor or edit content
- Works with any text file type
- Install from VSCode Marketplace (coming soon)
- Or install manually by packaging the extension
Add to your VSCode user settings (global/profile-specific):
{
"dimsumlines.mode": "focus", // or "regex"
"dimsumlines.opacity": 0.3,
"dimsumlines.regexPatterns": ["TODO", "FIXME", "debug"],
"dimsumlines.invertRegex": false
}User/Profile-specific settings (current behavior):
- Settings are saved in your VSCode user settings
- Settings follow you across all projects and workspaces
- Perfect for personal preferences that apply everywhere
- Your dimming configuration is consistent everywhere you work
- Settings are stored in your VSCode profile, not in project files
Benefits of user-specific settings:
- Consistent experience across all your projects
- No need to reconfigure for each workspace
- Settings travel with your VSCode profile
- Great for personal development preferences
- Doesn't clutter project files with personal settings
- Focus Mode (
"focus"): Dims all lines except the currently focused line - Regex Mode (
"regex"): Dims lines that match the specified regex patterns
regexPatterns: Array of regex patterns to matchinvertRegex: Iftrue, dims lines that DON'T match the patterns (highlight matches)
- Install the extension
- Open any text file
- All lines except the focused one will be automatically dimmed (focus mode by default)
- Move your cursor to change which line is in focus
All commands are available via Ctrl+Shift+P (or Cmd+Shift+P on Mac):
- Toggle DimSumLines Dimming: Enable/disable all dimming
- DimSumLines: Select Mode: Choose between Focus Mode and Regex Mode (dropdown)
- DimSumLines: Add Regex Pattern: Add a new regex pattern interactively
- DimSumLines: Manage Regex Patterns: View, review, and delete individual regex patterns
- DimSumLines: Clear Regex Patterns: Remove all regex patterns
- DimSumLines: Toggle Invert Regex: Toggle between dimming matching vs non-matching lines
- Use
Ctrl+Shift+P> "DimSumLines: Select Mode" to choose between modes - A dropdown will appear showing current mode and allowing you to switch
- No need to edit settings manually!
- Press
Ctrl+Shift+Pand type "DimSumLines: Add Regex Pattern" - Enter your regex pattern (e.g.,
TODO|FIXME|debug) - Pattern is added immediately and takes effect
- Press
Ctrl+Shift+Pand type "DimSumLines: Manage Regex Patterns" - A list of all your current patterns will appear
- Select a pattern to delete it individually
- Get confirmation when pattern is removed
- Use "Clear Regex Patterns" to remove all patterns at once
- Great for starting fresh with new patterns
TODO|FIXME|DEBUG: Dim lines containing these keywordsconsole\.log.*: Dim console.log statements//.*: Dim comment linesdebugger: Dim debugger statements
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "Toggle DimSumLines Dimming" and press Enter
- Or click the status bar indicator in the bottom right
- A notification will confirm the new status
- Look for the eye icon in the bottom right corner
$(eye) DimSumLines: ON- Dimming is active$(eye-closed) DimSumLines: OFF- Dimming is disabled- Click the indicator to toggle dimming on/off
- Default mode: dims all lines except the currently focused line
- Great for maintaining focus on your current work
- Set
"dimsumlines.mode": "regex"in your settings - Add regex patterns to
"dimsumlines.regexPatterns" - Lines matching the patterns will be dimmed
- Use
"dimsumlines.invertRegex": trueto dim non-matching lines instead (highlight matches)
npm install
npm run watch # for development
npm run compile # for production buildMIT