Tools for Defold to make your life a bit easier and coding experience in Lua nicer.
Features
IntelliSense
Demo (Defold API)
Open a Defold project
You should see a prompt to initialize the extension
or
Press Ctrl+Shift+P (or Cmd+Shift+P) or go to View > Command Palette.
Select Defold: Initialize
Demo (project dependencies)
Autocompletion for Defold URLs in .script and .lua files
Demo
Note: read about the addressing if you are not familiar with the concept
Known issues
For now the suggestions are not refreshed automatically when you make any changes to your .go and .collection files. For now you need to re-index them manually by runnin a command.
Open a .script file, you should see suggestions after typing a ", or pushing Ctrl+Enter with cursor next to a ".
Run "Defold: Index game files for autocompletion" when you need to refresh the autocompletion
Run "Project > Build" from VSCode
Demo
Note: requires Defold editor running in the background
Note: you can set a hotkey for this command as well as for any other command
Hot reloading after .script and .lua files are saved