File Reloader
A simple VSCode extension that allows you to reload a single file from disk, discarding any unsaved changes.
Features
- Reload the current file from disk with a single command
- Discard unsaved changes without affecting other open files
- Keyboard shortcut for quick access
Usage
Keyboard Shortcut
- Windows/Linux:
Ctrl+Alt+R
- Mac:
Cmd+Alt+R
Command Palette
- Open Command Palette (
Ctrl+Shift+P / Cmd+Shift+P )
- Type "Reload File from Disk"
- Press Enter
Requirements
- VSCode version 1.74.0 or higher
Installation
- Clone this repository
- Run
npm install to install dependencies
- Run
npm run compile to build the extension
- Press
F5 in VSCode to launch a new window with the extension loaded
Development
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch mode for development
npm run watch
License
This extension is released under the MIT License.
| |