This is a spiritual successor to the original guide How to turn Visual Studio Code into Defold IDE.
Defold Kit
This happened.
Yes, the old guide has been reborn as the extension for Visual Studio Code.
Named Defold Kit.
It can do everything that was described in the original guide. Automatically, with user-friendly installation and configuration.
You can install it from Visual Studio Marketplace.
And start to develop, build, launch, debug, bundle and deploy your game.
Features
- Installing recommended extensions
- Lua highlighting, autocompletion and linting
- Applying relevant settings to the workspace
- Lua annotations for Defold API
- Lua annotations for dependencies
- Building and launching
- Debugging with breakpoints
- Bundling for all the platforms
- Deploying to connected mobile devices
Screenshots
Flexibility and Compatibility
-
It’s possible to uncheck all the options during Defold Kit setup and still be able to build and run the game using the Launch (without Debugger) command. But of course it’s much more fun to debug the game with breakpoints.
-
The extension can be used in combination with the Defold Buddy extension, which adds additional sugar and features. But don’t forget to clean up the API annotations to avoid duplication.
-
In the settings, you can choose which Defold API annotation source to use. Two options are currently available — astrochili/defold-annotations and mikatuo/defold-lua-annotations.
-
The extension doesn’t store any API annotations in the project folder, it uses the VS Code extension storage instead.
-
To use your own API annotations solution you can skip the Annotations Syncing step or run the Clean API Annotations command.
-
Tested on macOS and Windows, but should work on Linux as well. No bash scripts anymore (shell sessions with bob only ).