Highlightability
A powerful VS Code extension to highlight code snippets with optional comments and advanced management features.
📹 Demo Videos
Quick Highlight Toggle
Video: See how to instantly highlight and unhighlight code with a single keyboard shortcut
https://github.com/user-attachments/assets/your-video-id-here
What you'll see:
Press Ctrl+Shift+Z
to toggle highlights on selected text
Instant highlighting with default color - no dialogs!
Remove highlights just as quickly with the same shortcut
Multiple Color Options
Video: Choose from 5 different colors to organize your highlights
https://github.com/user-attachments/assets/your-video-id-here
What you'll see:
Right-click context menu with color picker
Yellow, Green, Pink, Cyan, and Orange highlights
Perfect for categorizing different types of code
Video: Attach notes and reminders to your highlighted code
https://github.com/user-attachments/assets/your-video-id-here
What you'll see:
Add comments when creating highlights
Edit comments on existing highlights
Hover over highlights to see comments instantly
Video: Manage all your highlights from the dedicated Tree View sidebar
https://github.com/user-attachments/assets/your-video-id-here
What you'll see:
View all highlights organized by file
Click to jump to any highlight
Edit or delete highlights directly from the sidebar
Refresh, export, and import buttons for easy management
Export & Import Highlights
Video: Share your highlights with your team or back them up
https://github.com/user-attachments/assets/your-video-id-here
What you'll see:
Export highlights to JSON file
Import highlights from teammates
Merge or replace existing highlights
Perfect for team collaboration and code reviews
Dynamic Range Adjustment
Video: Highlights automatically adjust when you edit code
https://github.com/user-attachments/assets/your-video-id-here
What you'll see:
Add or remove lines above highlights
Highlights stay synchronized with your code
Edit inside highlighted sections
Persistent across file saves and VS Code restarts
✨ Features
Highlight any selected text with customizable colors (Yellow, Green, Pink, Cyan, Orange)
Keyboard shortcuts for lightning-fast highlighting
Quick highlight mode - instantly highlight with default color (no prompts!)
Add optional comments to highlights (visible on hover)
Right-click context menu integration for quick access
Persistent highlights across sessions with workspace state
Dynamic range adjustment - highlights adjust automatically when code is edited
Tree View sidebar for managing all highlights in one place
Edit comments on existing highlights without recreating them
Export/Import highlights to share with your team or backup
Navigate quickly to any highlight from the sidebar or command palette
Comprehensive logging for debugging issues
⌨️ Keyboard Shortcuts
Shortcut
Action
Ctrl+Shift+Z
(Mac: Cmd+Shift+Z
)
Toggle Highlight - Add or remove highlight on selected text
Ctrl+Shift+C
(Mac: Cmd+Shift+C
)
Edit Comment - Edit comment for highlight at cursor
📖 Usage
Toggle Highlight (Fast & Simple!)
The Toggle functionality is the main way to work with highlights:
Using Keyboard:
Select text
Press Ctrl+Shift+Z
(or Cmd+Shift+Z
on Mac)
Done!
If text is not highlighted , it will be highlighted with the default color
If text is already highlighted , the highlight will be removed
Using Context Menu:
Select text
Right-click and select "Toggle Highlight"
Toggles highlight on/off
Add Highlight with Specific Color
Want to use a specific color instead of the default? Use the Highlight Color submenu:
Using Context Menu:
Select the text you want to highlight
Right-click → hover over "Highlight Color" →
Choose your color from the submenu:
Yellow
Green
Pink
Cyan
Orange
The text will be highlighted with your chosen color
Note : Each selection can only have ONE highlight at a time. No layering!
Place your cursor on a highlighted area
Right-click and select "Edit Highlight Comment"
Update the comment in the input box
Or use the Tree View sidebar:
Click the edit icon (pencil) next to any highlight
Update the comment
Remove a Highlight
Place your cursor on a highlighted area
Right-click and select "Remove Highlight"
Or use the Tree View sidebar:
Click the delete icon (trash) next to any highlight
View All Highlights (Tree View)
Click the bookmark icon in the Activity Bar (left sidebar)
See all highlights organized by file
Click any highlight to jump to it
Expand/collapse files to see highlights within
View All Highlights (Quick Pick)
Open the Command Palette (Ctrl+Shift+P
or Cmd+Shift+P
)
Type "List All Highlights"
Select a highlight from the list to jump to it
Export/Import Highlights
Export:
Click the export icon in the Tree View title bar
Choose a location to save the JSON file
Share the file with your team
Import:
Click the import icon in the Tree View title bar
Select the JSON file to import
Choose to merge with existing or replace all highlights
Clear Highlights
Open the Command Palette or click the clear icon in Tree View
Type "Clear All Highlights"
Choose to clear highlights from the current file or all files
🎯 Commands
All available commands (accessible via Command Palette):
codeHighlighter.toggleHighlight
- Toggle highlight on/off for selected text (default color)
codeHighlighter.addHighlightYellow
- Add yellow highlight
codeHighlighter.addHighlightGreen
- Add green highlight
codeHighlighter.addHighlightPink
- Add pink highlight
codeHighlighter.addHighlightCyan
- Add cyan highlight
codeHighlighter.addHighlightOrange
- Add orange highlight
codeHighlighter.editHighlightComment
- Edit an existing highlight's comment
codeHighlighter.listHighlights
- List all highlights in Quick Pick
codeHighlighter.clearAllHighlights
- Clear highlights from current file or all files
codeHighlighter.exportHighlights
- Export all highlights to JSON file
codeHighlighter.importHighlights
- Import highlights from JSON file
codeHighlighter.refreshHighlights
- Refresh the Tree View
codeHighlighter.jumpToHighlight
- Jump to a specific highlight
codeHighlighter.showLogs
- Show extension logs for debugging
🔧 Troubleshooting
If highlights aren't showing up or you're experiencing issues:
View Logs : Open Command Palette (Ctrl+Shift+P
) and run "Show Highlighter Logs"
Check the output panel for detailed logging information
Look for error messages or warnings
The logs show:
When highlights are added/removed
File paths and line numbers
Decoration application status
Any errors that occur
Common issues:
Highlights not visible : Check if the correct file is open and decorations are being applied (check logs)
Highlights disappeared after editing : The extension automatically adjusts ranges, but check logs if issues persist
Extension not loading : Check the logs for activation errors
⚙️ Configuration
You can customize the default highlight color and available colors in your VS Code settings:
{
"codeHighlighter.defaultColor": "#FFFF0066",
"codeHighlighter.colors": [
"#FFFF0066",
"#00FF0066",
"#FF00FF66",
"#00FFFF66",
"#FFA50066"
]
}
🛠️ Development
To run the extension in development mode:
Clone the repository
Install dependencies: npm install
Compile: npm run compile
Press F5
to open a new VS Code window with the extension loaded
Build Commands
npm install # Install dependencies
npm run compile # Compile TypeScript
npm run watch # Watch mode for development
npm run lint # Run ESLint
npm run package # Create .vsix package
📄 License
Copyright © 2025 Housam Kak. All Rights Reserved.
This software and associated documentation files (the "Software") are proprietary and confidential. Unauthorized copying, distribution, modification, or use of this Software, via any medium, is strictly prohibited without express written permission from the copyright holder.
For licensing inquiries, please contact: housam.kak20@gmail.com
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
🐛 Issues
Found a bug or have a feature request? Please open an issue on GitHub .
💬 Feedback
Love Highlightability? Consider:
⭐ Starring the repo on GitHub
📝 Leaving a review on the VS Code Marketplace
🐦 Sharing with your fellow developers
Made with ❤️ for developers who love organized code