

- #Sublime text editor snippet install#
- #Sublime text editor snippet manual#
- #Sublime text editor snippet code#
- #Sublime text editor snippet simulator#
#Sublime text editor snippet simulator#
Set this to the path of your Solar2D Simulator if it's not installed

PreferencesĬorona_sdk_simulator_path (default: system dependent)
#Sublime text editor snippet install#
On macOS, if you install Solar2D in /Applications without changing the default name, it will use the highest numbered (most recent) build to run the project (to change this behavior, see corona_sdk_simulator_path below). Super+B (usually bound to the Build command) is now bound to the Run Project command for Solar2D Lua files. It is also better at finding your project's a if you aren't using Sublime Text's projects. It doesn't have all the bells and whistles of the build system but it is quick and easy. Run Project in the Debugger or continue project executionĪ simpler alternative to the Build command in Sublime Text is the Run Project command in the Solar2D Editor menu (or Super+F10). The following keys also control the Debugger: Key Select the name of a variable and choose Inspect Variable from the context menu to see its value.
#Sublime text editor snippet code#
Right click on a code line in the editor and choose Toggle Breakpoint to turn a breakpoint on or off. You can run the debugger using the Solar2D Editor menu from any file in the project and it will automatically find a. Debuggerĭebugger allows code to be single stepped, variables to be examined and breakpoints to be set. You can find information on setting User Preferences here. There are several Sublime Text User Preferences that can be set to fine tune the behavior of the plugin. If the syntax option is set correctly you'll see it displayed in the bottom righthand corner of the Sublime Text window. lua files by choosing View > Syntax > Open all with current extension as… > Lua (Solar2D) when you have a. You will probably also want to change Sublime Text's default for. Most of the features of the plugin rely on the current Syntax setting so when editing files you should use View > Syntax > Lua (Solar2D) command to set the correct syntax for the file. If you install the tip from Github please report any issues using the Issues page on Github: Using the PluginĪfter restarting Sublime Text you'll have several new features available in the Solar2D Editor menu and in the context menu when editing Solar2D.
#Sublime text editor snippet manual#
lua files to see the new featuresĪlternatively, if you are comfortable doing manual installs of Sublime Text plugins and want to run the latest development version, you can download the plugin from
