Defold API snippets for Visual Studio Code
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
scr
snippets
.gitattributes
.gitignore
.vscodeignore
LICENSE
README.md
icondefold.png
package.json

README.md

Defold API VS Code Snippets

Full api snippets for Defold Engine.

You can download the snippets from marketplace. Initial release is based on API version 1.2.137. All functions, messages and properties are separated and includes all the parameters.

vcs


Ordered Tabstops

Ordered Tabstops

Message Generation

play_sound -> msg.post(receiver, "play_sound", {[delay], [gain]})

model_animation_done -> msg.post(receiver, "model_animation_done", {animation_id, playback})

focus

focus

Properties with quotation marks

"scale"

Release Notes

1.0.2

Missing functions, methods and properties are added.

Args added to the list.

1.0.0

Initial release based on API version 1.2.137.

Recommended Settings & Extension

Install vscode-lua: Lua for Visual Studio Code. Provides Intellisense and Linting for Lua in VSCode

Add .script files to your settings

"files.associations": {
        "*.script": "lua",
        "*.gui_script": "lua",
        "*.render_script": "lua"
      }

Json Parser

I build this snippet with a simple Python script. It parses all json files from api docs and converts them to single snippet file. It is available here. Feel free to update it.