knoxfighter / intellij-factorio-autocompletion

Autocompletion for the Factorio-API within Jetbrains IDEs
MIT License
17 stars 5 forks source link

Intellij Factorio Autocompletion

Build status Jetbrains plugin

This is a plugin for the jetbrains IDEs. It adds autocompletion to LUA Files for the Factorio LUA-API.

The API has to be downloaded from the Internet, when the Integration is activated. Also the Settings can only be changed, when internet connection is available. When the Connection is cancelled, while the download is active. The Integration will only be loaded partially and has to be reset, by clicking the button in the Settings.

All Settings are available in Settings > Languages & Frameworks > Factorio Autocompletion.

All classes should be available in the autocompletion. To mark a variable as class, you can simply write e.g. ---@type LuaEntity over it. All Factorio function, that have a return value, will be also autocompleted.

As Base-LUA-Plugin emmylua is needed.

Examples:

Known Issues

Most of the issues occur, cause the html-API Documention is not consistent :(

Lua API

Prototypes

Planned features