This is a spiritual successor to the original guide How to turn Visual Studio Code into Defold IDE.
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.
- 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
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.
The extension doesn’t store any API annotations in the project folder, it uses the VS Code extension storage instead.
Tested on macOS and Windows, but should work on Linux as well. No bash scripts anymore (shell sessions with bob only ).