Last week Jane (thanks!) suggested I took another look at Visual Studio Code, so I did.
It has come on leaps and bounds since I looked at it last. I can now have:
- Code folding (at various levels)
- Git integration
- Mutiple files open for editing side by side within an single instance
- Todo items
I've added a few extensions to the basic editor to make it a better match for my needs:
- Lua (sumneko.lua) which handles Autocompletion, cross-reference, syntax checking etc.
- vscode-lua-format (koihik.vscode-lua-format) -- does what it says on the tin
- Todo Tree (gruntfuggly.todo-tree) which searches for comment tags (e.g. TODO, FIXME or others of your definition) and creates a todo tree so you can see what you've noted you still need to action
- GitLens (eamodio.gitlens) which adds to the Git functionality built into the editor. (You neeed to install Git on your PC to make the Git functionality available).
If what you're using doesn't quite suit you, and you're not averse to using a free Microsoft product, or you need an editor both for Lua and other languages and you want to reduce the number of programmes you have installed, you might want to take a look. I'm planning to get rid of ZeroBrane and seriously consider ditching Visual Studio 2019 (if I can work out how to compile LuaRocks without it).
There is a lot of online documentation.