Plugin Editors -- another alternative (Visual Studio Code)
Posted: 07 Jun 2021 12:00
As some of you know, I've been using the Zerobrane editor for Lua for sometime, having looked at all the options a few years back and failed to find all the features I wanted in any of them. Zerobrane came closest to meeting my needs but fell down on software version control (specifically Git integration).
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:
I've added a few extensions to the basic editor to make it a better match for my needs:
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.
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.