@Mention - Smart File References for VS Code

Transform your code comments into interactive documentation with clickable file references and rich previews.
@Mention revolutionizes how you reference files in your codebase. Simply type @filename in comments, documentation, or anywhere in your code to create clickable links with rich hover previews that make navigation effortless.
✨ Features
🔗 Smart File Linking
Turn any @filename into a clickable link that opens the file instantly.
// TODO: Fix the authentication bug
// @src/auth/login.ts - Check the validateUser function
// @tests/auth.test.ts - Add edge case tests
🎯 Intelligent Auto-completion
Type @ and get instant suggestions for all files in your workspace with fuzzy search.
- Smart filtering - Only shows files that actually exist
- Relative path resolution - Automatically resolves paths from current file location
- Fast search - Quickly find files as you type
📋 Rich Hover Previews
Hover over any file mention to see:
- 📄 File metadata - Size, last modified date, relative path
- 👀 Code preview - First 15 lines with syntax highlighting
- 🎨 Language detection - Automatic syntax highlighting for 15+ languages
- ⚡ Quick actions - Open file or copy path with one click
🎨 Visual Indicators
- Blue underline for valid file references
- Smart detection - Only highlights actual files, not code snippets
- Consistent styling across all file types
🚀 Multi-Language Support
Works seamlessly across:
- JavaScript/TypeScript (.js, .ts, .jsx, .tsx)
- Python (.py)
- JSON (.json)
- Markdown (.md)
- And more!
🎬 Quick Demo
/**
* User Authentication Flow:
*
* 1. @src/routes/auth.js - Handles login endpoint
* 2. @src/middleware/validate.js - Validates user input
* 3. @src/services/userService.js - Database operations
* 4. @config/database.json - Connection settings
*
* For testing: @tests/auth.test.js
*/
Hover over any @filename above to see the magic! 🪄
📦 Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "@Mention"
- Click Install
From Command Line
code --install-extension akashnath.mention
Manual Installation
- Download the
.vsix file from releases
- Run:
code --install-extension mention-0.0.1.vsix
🚀 Getting Started
- Install the extension
- Open any file in your workspace
- Type
@ followed by a filename anywhere in your code
- See the magic happen!
Example Usage
// In your code comments
// @package.json - Check dependencies
// @src/utils/helpers.ts - Contains utility functions
/*
* Project Structure:
* @src/components/ - React components
* @src/styles/main.css - Global styles
* @docs/api.md - API documentation
*/
⚙️ How It Works
- Type
@filename - Start typing any filename in your workspace
- Get suggestions - Intelligent autocomplete shows matching files
- See previews - Hover to view file contents without opening
- Click to open - Ctrl+Click (or Cmd+Click) to open the file instantly
🎯 Use Cases
📝 Code Documentation
/**
* Authentication module
*
* Dependencies:
* @src/config/auth.json - Auth configuration
* @src/utils/jwt.ts - JWT utilities
* @src/middleware/auth.ts - Auth middleware
*/
🐛 Bug Reports & TODOs
// BUG: Memory leak in data processing
// @src/data/processor.js:156 - Fix the async loop
// @tests/processor.test.js - Add memory usage tests
📚 Onboarding Documentation
## Getting Started
1. Configure environment: @.env.example
2. Install dependencies: @package.json
3. Run migrations: @database/migrations/
4. Start development: @scripts/dev.sh
🔄 Code Reviews
// REVIEW: Consider refactoring this component
// @src/components/UserList.tsx - Extract hook logic
// @src/hooks/useUsers.ts - Move data fetching here
🎨 Supported Languages
The extension works in all file types and provides syntax highlighting for:
| Language |
Extensions |
Syntax Highlighting |
| TypeScript |
.ts, .tsx |
✅ |
| JavaScript |
.js, .jsx |
✅ |
| Python |
.py |
✅ |
| JSON |
.json |
✅ |
| Markdown |
.md |
✅ |
| CSS/SCSS |
.css, .scss |
✅ |
| HTML |
.html |
✅ |
| YAML |
.yaml, .yml |
✅ |
| XML |
.xml |
✅ |
| SQL |
.sql |
✅ |
| Shell |
.sh |
✅ |
| PowerShell |
.ps1 |
✅ |
- Fast file scanning - Efficiently indexes your workspace
- Smart caching - Reduces file system operations
- Exclude patterns - Automatically ignores
node_modules, .git, dist, etc.
- Lightweight - Minimal impact on VS Code performance
🤝 Contributing
We welcome contributions! Here's how you can help:
- 🐛 Report bugs - Open an issue
- 💡 Suggest features - Request a feature
- 🔧 Submit PRs - Contribute code
Development Setup
# Clone the repository
git clone https://github.com/Akash-nath29/Mention.git
cd Mention
# Install dependencies
npm install
# Start development
npm run watch
# Run tests
npm test
📋 Requirements
- VS Code 1.102.0 or higher
- Node.js (for development only)
No additional dependencies required for end users!
⚙️ Extension Settings
Currently, @Mention works out of the box with sensible defaults. Configuration options will be added in future releases based on user feedback.
🐛 Known Issues
- Large files (>1MB) may show truncated previews for performance
- Binary files show limited preview information
- Very long filenames may be truncated in tooltips
See the full issues list for current status and workarounds.
📝 Release Notes
0.0.1 - Initial Release 🎉
Features:
- ✅ Smart file linking with
@filename syntax
- ✅ Rich hover previews with syntax highlighting
- ✅ Intelligent autocomplete
- ✅ Multi-language support
- ✅ Copy file path functionality
Coming Soon:
- 🔄 Line-specific mentions (
@file:42)
- 📊 Mention analytics
- 🎨 Customizable styling
- 🔍 Advanced search filters
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- VS Code Team - For the amazing extensibility platform
- Community - For feedback and feature suggestions
- Contributors - For making this project better
📞 Support