https://github.com/mikatuo/defold-lsp-annotations
Generate Emmylua annotations for Defold
https://github.com/mikatuo/defold-lsp-annotations
hacktoberfest
Last synced: 4 months ago
JSON representation
Generate Emmylua annotations for Defold
- Host: GitHub
- URL: https://github.com/mikatuo/defold-lsp-annotations
- Owner: mikatuo
- License: mit
- Created: 2023-01-09T21:35:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-03T15:03:30.000Z (4 months ago)
- Last Synced: 2025-02-06T13:54:57.642Z (4 months ago)
- Topics: hacktoberfest
- Language: C#
- Homepage:
- Size: 1.16 MB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-defold - Defold API generator on C#
README
  
## Lua and Teal annotations for [Defold](https://defold.com)
# Use in VS Code
1. Install `Defold Buddy` extension or `Defold Extension Pack`
2. Open a Defold project
3. You will be prompted to add the annotations into your project[Read more...](https://forum.defold.com/t/vscode-extensions-for-defold-aka-defold-extension-pack/72508?u=mikatuo)
Manual installation
1. Install [Lua](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)
2. Grab annotations from the [Releases](https://github.com/mikatuo/Defold-Emmylua-Annotations/releases)
3. Unzip the archive with annotations inside your Defold project into the `.defold` folder
4. Modify your settings as needed. Have a look at [settings.json](https://github.com/mikatuo/Defold-Lua-Annotations/blob/main/Examples/settings.json) that worked best for me
5. Enjoy!## Demo



# Use in IntelliJ IDEA
1. In the IDEA click `Ctrl+Alt+S` to open settings
2. Go to `Plugins` and install the [Luanalysis](https://github.com/Benjamin-Dobell/IntelliJ-Luanalysis) plugin
3. Grab annotations from the [Releases](https://github.com/mikatuo/Defold-Emmylua-Annotations/releases)
4. Unzip the archive with annotations inside your Defold project into the `.defold` folder
5. In the `/.defold/*.lua` files replace all `@class` keywords with `@shape` keywords.
6. Enjoy!## Credits
Teal annotations contributed by [gyxos-logan](https://github.com/gyxos-logan) 🏅