Skip to content

gamelff/supermacro-extension

Repository files navigation

🚀 SuperMacro Support for VS Code

Enhance your BarRaider SuperMacro workflow with professional IDE features. This extension brings syntax highlighting and intelligent snippets to VS Code, making it the ultimate editor for Stream Deck macro development.

✨ Features

  • Syntax Highlighting: High-contrast coloring for {{FUNC}}, variables, mouse commands, and keystrokes.
  • Intelligent Snippets: Instant autocomplete for complex math, string, and system functions.
  • Bracket Logic: Custom configuration to handle the double-bracket {{ }} syntax without annoying auto-complete conflicts.
  • Comment Support: Full visibility for {{//}} line comments to keep your complex macros documented.

🛠 Installation

  1. Go to the Releases page.
  2. Download the latest .vsix file.
  3. Open VS Code.
  4. Open the Extensions view (Ctrl+Shift+X).
  5. Click the More Actions... (three dots) menu in the top right.
  6. Select Install from VSIX... and choose the file you downloaded.

⌨️ Snippet Cheat Sheet

Start typing these prefixes in any .sm or .supermacro file to see the magic:

Prefix Category Examples
fmath Math ADD, SUB, RANDOM, ROUND
fstr Strings CONCAT, REPLACE, UPPER, LEN
var Variables VarSet, Input, Output, VarSetFromFile
mouse Mouse MOUSEXY, MOUSEMOVE, MSCROLLUP
mbtn Buttons LBUTTON, RBUTTON, XBUTTON
winop Windows VOLUME_UP, MEDIA_PLAY, BROWSER_HOME
keys Combos {{CTRL}{C}}, {{ALT}{F4}}
pause Timing {{PAUSE:1000}}

📝 Usage

To activate the extension, ensure your macro files end in:

  • .sm
  • .supermacro

If the highlighting doesn't appear automatically, click "Plain Text" in the bottom right corner of VS Code and select SuperMacro.


🤝 Contributing

Found a missing command or a bug? Feel free to open an issue or submit a pull request on the GitHub Repository.

Developed by [Randum28]Optimized for the Stream Deck Community.

About

The essential VS Code extension for BarRaider's SuperMacro. Featuring syntax highlighting, smart snippets, and optimized bracket handling for Stream Deck macro development.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors