Rainmeter Skin Editor
A VS Code extension for editing Rainmeter skins with automatic refresh functionality.
Features
- Automatic Refresh: Automatically refreshes Rainmeter skins when saving .ini files
- Manual Refresh: Provides a title bar button and command palette option for manual refresh
- Configuration: Allows users to configure the path to Rainmeter.exe
- Process Check: Detects multiple running Rainmeter instances (Windows only)
- Error Handling: Comprehensive error messages for configuration and execution issues
Requirements
- Rainmeter installed on your system
- Windows operating system (for process checking functionality)
Extension Settings
This extension contributes the following settings:
rainmeter-editor.rainmeterPath: Path to Rainmeter.exe (default: "C:\Program Files\Rainmeter\Rainmeter.exe")
Usage
- Install the extension
- Open VS Code Settings (Ctrl + ,) and search for "Rainmeter" to configure the path
- Open any Rainmeter skin .ini file
- Edit and save the file - it will be automatically refreshed in Rainmeter
- Alternatively, click the refresh button in the VS Code title bar or use the command palette (Ctrl + Shift + P) to run "刷新"
How It Works
The extension uses the following approach:
- Automatic Refresh: Listens for file save events on .ini files
- Process Check: Uses
tasklist command to check for multiple Rainmeter instances
- Command Execution: Uses Node.js
spawn to execute the Rainmeter refresh command
- Error Handling: Catches and displays errors for configuration issues, path issues, and execution failures
Logging
The extension logs detailed information to the Extension Host output panel:
- Press Ctrl + Shift + P
- Type "Output: Focus on Output View"
- Select "Extension Host" from the dropdown
Known Issues
- Process checking only works on Windows
- The extension assumes Rainmeter is installed in the default location if not configured
| |