File Tab Rename Extension
A VS Code extension that allows you to rename files by right-clicking on file tabs.
Features
- Right-click on any file tab to see a "Rename File" option in the context menu
- Input validation to prevent invalid file names
- Automatic handling of open files (closes and reopens after rename)
- Error handling and user feedback
Installation
- Create a new folder for your extension
- Copy all the provided files into the folder
- Open the folder in VS Code
- Run
npm install to install dependencies
- Press
F5 to launch a new Extension Development Host window
- Test the extension by right-clicking on file tabs
Usage
- Right-click on any file tab in the editor
- Select "Rename File" from the context menu
- Enter the new file name in the input box
- Press Enter to confirm or Escape to cancel
Building and Packaging
To build the extension:
npm run compile
To package the extension:
npm install -g vsce
vsce package
Requirements
- VS Code 1.74.0 or higher
- Node.js and npm
Known Issues
Release Notes
1.0.0
Initial release with basic file renaming functionality.
| |