Defold API Snippets for Visual Studio Code

#1

Full api snippets for Defold Engine is available on marketplace.
All Lua and C++ methods, messages, properties and brief descriptions are included.

Marketplace: https://marketplace.visualstudio.com/items?itemName=selimanac.defold-vsc-snippets

selimanac/defold-vsc-snippets - GitHub

Settings

Add .script files to your settings.json

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

Useful Extensions


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.2.1

  • API version 1.2.163

1.2.0

LUA and C++ (Defold SDK) APIs are separated. You can use Defold SDK snippets with C++ now.

1.1.7

  • API version 1.2.156

1.1.6

  • API version 1.2.149

1.1.5

  • API version 1.2.147

1.1.4

  • API version 1.2.138
  • Missing functions, methods and properties are added properly.
  • Properties added to the body.

(Sorry for the version numbering, vsce publish minor cause this )

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.

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.

29 Likes

Poor IDE font rendering on Win10 in Editor 2
#2

I’m waiting for this one, thx dude! :grin: :heart_eyes:

3 Likes

#3

Love initiatives as this, great job! :smiley:

2 Likes

#4

Ohhhh I guess so much people have been waiting for this. Thanks!

2 Likes

#5

Thank you for this great job!! :joy:

3 Likes

#6

Just found this on the marketplace. Astounding job selimanac

5 Likes

#7

Updated to API 1.2.163
Also, I’m using EmmyLua for some time now. Highly suggested!

5 Likes

#8

EmmyLua is awesome. I also use it but in IntelliJ IDEA.:grinning:

3 Likes