I've recently bought the game and wanted to start modding, but first I wanted to make life easier by having the official API documentation inside my editor. And so I've created a VS Code extension that provides autocompletion for the Factorio API.
Features:
- Autocomplete of all Lua classes and globals
- Mouse hover tooltips, with links to the official documentation at http://lua-api.factorio.com
- Mouse hover tooltips
Marketplace: https://marketplace.visualstudio.com/it ... tocomplete
Github: https://github.com/simonvizzini/vscode- ... tocomplete
VS Code is free and open source, by the way!
Feedback welcome! The extension still requires some polishing so there may be some quirks here and there. Especially the formatting of the documentation is a bit wonky, because converting HTML to plain text is a bit difficult and I don't think I'll be able to improve it much more. Best solution would be to have the API documentation available in another format than HTML, but the dev's would need to provide that (I'm not sure how they generate their API docs). At least it was quite fun to try this web scraping stuff for once.
If you want to contribute then feel free to create a pull request, report bugs or just make a suggestion
Happy modding!