A complete set of tools to code games with the Mole game engine in Visual Studio Code.
This plugin only support mole 3.2 and above.
Features
The extension comes with a wealth of features to make your Mole programming experience as comfortable as possible:
- Syntax highlighting for the MoScript (
.mo ) language
- Syntax highlighting for the
.tscn and .tres scene formats
- Full Typed MoScript support
- Optional
Smart Mode to speed up dynamic typed script coding
- Function definitions and documentation display on hover (see image below)
- Rich auto-completion
- Display script warnings and errors
- Ctrl-click on a variable or method call to jump to its definition
- Full documentation of the Mole engine's API supported
- Run mole project from VS Code
Available Commands
The extension adds a few entries to the VS Code Command Palette under "MoleTools":
- Open workspace with Mole editor
- Run workspace as Mole project
- List native classes of mole
Settings
Mole
If you like this extension, you can set VS Code as your default script editor for Mole by following these steps:
- Open editor settings
- Select
Text Editor / External
- Make sure the
Use External Editor box is checked
- Fill
Exec Path with the path to your VS Code executable
- Fill
Exec Flags with {project} --goto {file}:{line}:{col}
VS Code
You can use the following settings to configure Mole Tools:
- editor_path - The absolute path to the Mole editor executable
- moscript_lsp_server_port - The websocket server port of the MoScript language server
- check_status - Check the MoScript language server connection status
| |