vscode-theme-randomizer
Randomize your VS Code color theme from the sidebar, or automatically when a window opens.
Features
- Sidebar button to randomize the active color theme.
- Setting to randomize theme on startup.
Usage
- Open the Theme Randomizer view in the Explorer sidebar.
- Click Randomize Theme in the view title or in the view welcome content.
Local testing on Windows 11
- Install prerequisites:
- Open PowerShell and clone the repository:
git clone https://github.com/skyhoshi/vscode-theme-randomizer.git
cd vscode-theme-randomizer
npm install
code .
- In VS Code, open Run and Debug (
Ctrl+Shift+D).
- Create a launch configuration:
- Click create a launch.json file
- Choose VS Code Extension
- Keep the generated Run Extension configuration
- Start local testing:
- Select Run Extension in the debug dropdown
- Press
F5 to open an Extension Development Host window
- In the Extension Development Host window, verify the extension:
- Open the Explorer sidebar and find Theme Randomizer
- Click Randomize Theme in the view title, or run Randomize Theme from the Command Palette
- Optional: test startup randomization:
- Open Settings in the Extension Development Host
- Enable
vscodeThemeRandomizer.randomizeOnStartup
- Run Developer: Reload Window
- Run automated tests from the project terminal when needed:
npm test
Settings
vscodeThemeRandomizer.randomizeOnStartup (boolean, default false): Randomizes the VS Code color theme when a window opens.
| |