defold-vsc-snippets icon indicating copy to clipboard operation
defold-vsc-snippets copied to clipboard

Defold API snippets for Visual Studio Code

This project is archived. Defold has better VSC plugins now.

You can use https://github.com/astrochili/defold-vscode-guide

Defold API Reference

Defold API Snippets for Visual Studio Code

Lua & C/C++ API Reference snippets for Defold Engine is available on Visual Studio Marketplace.

Github

vcs


vcs

Ordered Tabstops

Ordered Tabstops

Message Generation

Examples:

Type playsound and it will generate msg.post(receiver, "play_sound", {[delay], [gain]})

Type modelanimationdone and it will generate msg.post(receiver, "model_animation_done", {animation_id, playback})

playsound

Recommended Settings & Extension

Add Defold files.associations to your settings.json file.
Setting editor.snippetSuggestions to bottom change the order relative to suggestions.

"files.associations": {
        "*.script": "lua",
        "*.gui_script": "lua",
        "*.render_script": "lua",
        "*.editor_script": "lua"
      },
"editor.snippetSuggestions": "bottom"

Recommended Extension

Json Parser

There is a Python script which download and parse the latest version of the Defold API Reference available on Github repo.