Provides palette commands and a convenient status bar button for compiling and running Yuescript files.
New in v0.4.0:
- Fixed status bar button visibility issue - button now appears immediately when opening Yuescript files
- Auto-save before compile/run (configurable)
- Success notifications on compilation (optional)
- Clear terminal before running commands (optional)
- Improved configuration descriptions with helpful context
Open your command palette with
CTRL+SHIFT+P
Run this YuescriptCompile this YuescriptCompile all Yuescripts (in this directory)Compile all Yuescripts & Run LOVE2D (in this directory)
-
Install
yuescript -
Ensure that
yueis visible within yourPATH. -
If you want
LÖVE2Dsupport, install it, and add it to yourPATH.
This extension contributes the following settings:
yuescriptrunner.targetLuaVersion- Select the Lua version to target for compilation (5.1, 5.2, 5.3, or 5.4)yuescriptrunner.useMinification- Enable code minification to reduce output sizeyuescriptrunner.useSpacesInstead- Use spaces instead of tabs for indentationyuescriptrunner.reserveComments- Preserve comments from source in compiled outputyuescriptrunner.writeLineNumbers- Include line number information for debuggingyuescriptrunner.useImplicitReturn- Automatically add return statement for last expressionyuescriptrunner.matchLineNumbers- Maintain same line numbers as source file
yuescriptrunner.dumpGlobals- Output list of global variables with their locationsyuescriptrunner.dumpToStdout- Print compiled code to terminal instead of fileyuescriptrunner.dumpCompileTime- Display compilation time in terminal
yuescriptrunner.defaultAction- Choose the default action for the status bar buttonyuescriptrunner.iconOnly- Show only icon on status bar button (saves space)yuescriptrunner.reFocusDocument- Return focus to editor after running commandsyuescriptrunner.autoSaveBeforeRun- Automatically save file before compiling/runningyuescriptrunner.showNotifications- Show success notifications on compilationyuescriptrunner.clearTerminalBeforeRun- Clear terminal before running commands
yuescriptrunner.loveExecutable- Choose LÖVE executable (love or lovec)
Help out by reporting any issues to the Github
- If you try to use
LÖVE2Dwithout it being installed, an error will occur.
Enjoy!
