A visual studio code extention for the forts scripting api
download the extension
and the Lua extention (ext install sumneko.lua
)
Then in your workspace, if the extention doesn't dectect your mod, open the command palette (ctrl + shift + p) and enter activate forts API
this will activate the completion and intellisense.
For the doc if your not working in /Steam/steamapps/common/Forts/data/mods/
(or in /Steam/steamapps/workshop/content/410900/
) put AT THE VERY TOP of your file (line 1) --- forts API ---
like that :
--- forts API ---
<your code>
- autocompletion
- intellisense
- doc on hover
- example code
It's speed up the process : now with the #example
snippet you will have up to 130 lines of code example for your current file
actualy implemented :
- mod.lua
- weapons/weapon_list.lua
- weapons/projectil_list.lua
- devices/device_list.lua
- material/building_materials.lua
- TretinV3
Feel free to contact me on discord (TrétinV3#7056 for now) or in #🛠-modding !