ActiveFileName
A lightweight VS Code extension that displays the active file name in the status bar with quick access to essential file operations.
Overview
ActiveFileName enhances your VS Code workflow by providing instant visibility of the currently active file and quick access to common file operations directly from the status bar.
Features
- 📁 Active File Display: Shows the current file name in the VS Code status bar
- 🔄 Real-time Updates: Automatically updates when switching between files or editors
- 🖱️ Interactive Status Bar: Click to access file operations via quick pick menu
- ⚡ Quick File Actions: Perform common file operations without navigating away
- 🎨 Clean Interface: Seamlessly integrates with VS Code's native status bar design
- 💡 Smart Visibility: Status bar item appears only when a file is active
Quick Start
- Install the extension
- Open any file in VS Code
- Look for the filename in the status bar (left side)
- Click the filename to access file operations
Available Actions
Click the active filename in the status bar to access:
Action |
Description |
📝 Show File Name |
Display the current filename in an information popup |
📂 Open Containing Folder |
Reveal the file's directory in your system's file explorer |
📋 Copy File Path |
Copy the complete file path to your clipboard |
💻 Open in Terminal |
Open a terminal session in the file's directory |
Commands
The extension provides these commands (accessible via Command Palette):
activefilename.showFileOptions - Show file options menu
activefilename.showFileName - Display current filename
activefilename.openFolder - Open containing folder
activefilename.copyPath - Copy file path to clipboard
activefilename.openInTerminal - Open terminal in file's directory
Requirements
- VS Code: Version 1.101.0 or higher
- Operating System: Windows, macOS, or Linux
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "ActiveFileName"
- Click Install
How It Works
The extension operates automatically:
- Activation: Starts when VS Code opens
- Detection: Monitors active editor changes
- Display: Updates status bar with current filename
- Interaction: Responds to clicks with action menu
- Updates: Refreshes display when switching files
Configuration
This extension works out of the box with zero configuration required. No settings to manage - just install and use!
Troubleshooting
Status bar item not visible?
- Ensure a file is currently open and active
- Check if the status bar is visible (View → Appearance → Status Bar)
Commands not working?
- Try reloading VS Code (Developer → Reload Window)
- Ensure you have the required VS Code version
Terminal not opening in correct directory?
- Ensure the file is saved and has a valid path
- Check that VS Code has proper terminal permissions
Contributing
Found a bug or have a feature request? Contributions are welcome!
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Release Notes
0.0.2 - Initial Release
✨ New Features:
- Active file name display in status bar
- Real-time file switching detection
- Interactive status bar with quick pick menu
- Hover tooltips for better UX
🛠️ Available Commands:
- Show current file name
- Open containing folder in file explorer
- Copy full file path to clipboard
- Open terminal in file's directory
Future Enhancements
- 🎯 Customizable status bar position
- 🎨 Configurable display format
- 📊 File statistics display
- 🔧 Additional file operations
License
This extension follows VS Code extension guidelines and best practices.
Made with ❤️ for the VS Code community
For more information, visit the Extension Guidelines