VSCODE POWER MODE!!!
Power Mode is one of the most requested extensions for VS Code. Unfortunately, they said it couldn't be done...
However, after seeing this list and realizing that VS Code was the only modern editor without it, I knew I had to try. I couldn't let VS Code live in the shadow of its big brother or Atom.
I present you, VSCODE POWER MODE!!! (now with atom-like explosions and an improved combo meter!)
Features:
- NEW: POWERFUL Combo Meter!
- Strong default settings
- Easily choose from a variety of built-in effects including explosions, interdeminsional portals, and clippy. Or quickly edd your own!
- Extremely Customizable -- 20+ settings to get exactly the experience you want
Get started
- Enable in the settngs UI, or edit the JSON file directly to add
"powermode.enabled": true
- Enjoy the default experience, or choose from a set of built-in effects
- Enable/Disable via a command
- Customize the experience using the advanced settings
- Find more effects or share your own on here.
Known Issues
They weren't completely wrong when they said it can't be done. VS Code does not expose the DOM as part of the API. Instead this extension relies on using TextEditorDecorations to set css properties for ranges in the editor. This has a few limitations:
- The cursor doesn't move with the text as it shakes
- The new combo meter moves off the screen when the editor has long lines unless "word wrap" is enabled
- There are (literal) edge cases when typing in the first or last lines of the editor
- Gifs must be used instead of CSS animations for the particles/explosions
Choose Your Explosions:
You can choose explosions with a single setting: powermode.presets
. Check out the options below
(note: it looks better IRL than in these gifs):
Particles (Default)
Rift (Simple)
Rift (Exploding)
Note: If your code becomes hard to read, you may need to set editor.lineHighlightBackground
in your user or workspace settings. For example, if your theme is Default Dark+
, try:
"editor.lineHighlightBackground": "#1E1E1EAA"
Fireworks
Flames
Magic
Clippy
Advanced Settings:
Power Mode should work great right out of the box, but if it doesn't I've tried to make it as configurable as possible. Tweak the settings for performance or for fun. From doge to clippy, the only limit is your imagination. Some of the options are explained below:
powermode.shake.enabled
: Uncheck this to disable screen shaking entirelypowermode.combo.location
: Control where the combo counter appearspowermode.explosions.customExplosions
: Choose your own explosions with base64 encoded gifs or full web URLs (i.e. "data:image/gif;base64,1337GIF", "https://coolgif.io"). NOTE: Security precautions in the browser engine prevent referencing local files, so for offline-support, please base64 encode the gif.powermode.explosions.backgroundMode
:mask
will use the gif as a mask, letting the shape of the gif through with the color of the text.image
will use the gif itself as the background.powermode.explosions.gifMode
:restart
will restart a gif each time it is displayed,continue
will play the gif from the place it stopped.continue
is particularly useful when you only have 1 visible gif,restart
is useful when you have multiple, but may reduce performance.powermode.explosions.maxExplosions
: Reducing this will reduce the number of explosions rendered at once.powermode.explosions.explosionFrequency
: Increasing this will increase the number of keystrokes between explosions. It means that there will be gaps between explosions as you type but may help performance.powermode.explosions.customExplosions
: Provide your own gifs to use (And share them here)powermode.explosions.customCss
: Changes the CSS applied to the "after" pseudoelement. You can experiment with ways to make it look or perform better.powermode.explosions.explosionOrder
:sequential
will cycle through explosions in order,random
will pick one randomly, and providing a number will select the explosion at that (zero-based) index in the list of explosions.
Help Wanted:
If you can provide some lightweight, attractive gifs that improve how power mode looks and performs, I would be happy to include them! Share them here.
Acknowledgements:
- Thanks to @ao-shen for insight into animating size and colors for the combo-meter
- Thanks to @RPuffer for providing the incredible gifs added in version 2.1
- Thanks to @darkvertex for providing the awesome gifs added in version 2.0
- Thanks to @horvay for giving me ideas to get around the limitations I had in v0.0.1
Changelog:
- v3.0.1
- Fix bug where combo meter scrolls with the page
- v3.0.0
- Added an improved combo meter!
- Added commands to enable/disable Power Mode
- Reorganized and renamed the settings to make it much easier to configure from the settings UI. Old settings will be automatically migrated after updating
- Effects now work without "render whitespace" enabled
- Bug fixes, with thanks to @Thertzlor and @hyprhare for their contributions
- v2.2.0
- Added
powermode.enableStatusBarComboCounter
andpowermode.enableStatusBarComboTimer
to toggle status bar items - Added new presets
- Bug fixes
- Added
- v2.1.0
- Fixed #20 (Thanks @kirkone)
- v2.0.0
- Added
powermode.presets
to choose between different built-in explosion sets - Added
powermode.backgroundMode
to allow 'atom like' explosions (explosions that match the color of the text being typed) - Breaking: Removed
powermode.legacyMode
- Breaking: Renamed
powermode.explosionMode
topowermode.explosionOrder
- Breaking: Removed
powermode.settingSuggestions
- Added
- v1.2.1
- Remove intellisense for CSS configuration due to this issue
- v1.2.0
- Suggest configurations in settings.json
- v1.1.0
- Configure explosion duration
- Configure explosion "mode": random, sequential, or a specific explosion
- Reduce default "max explosions" from 5 to 1
- v1.0.0
- True power mode! Explosions now extend outside the boundaries of a letter
- Eliminated two of the default explosions that didn't look good when expanded
- Added new explostion configuration options (explosion number, size, and frequency)
- Added a Legacy Mode configuration option
- Shake now resets after 1 second without typing (Thanks @horvay)
- v0.0.1
- Initial release
- Explosions work, but limited to size of characters