I just found that the Shift + Enter shortcut doesn't work after the 'else' keyword. I know it was supposed to be context aware, I see it properly adds 'until' after 'repeat' which is nice, but this case seems to have been omitted in the update which makes coding slightly annoying.
I'm not sure if this is a bug or a (not so useful) feature, because it's consistent with the changelog which states that as of 0.2.2b:
> shift+enter in code editor only auto-completes block for DO, THEN, REPEAT or FUNCTION
and not ELSE. If this is intended I'll move the post to the workshop section as a feature request.
Version: 0.2.2c
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/40166/batfoxsona 2018-08-24 v3c square.png)
Seconding this bug report/feature request - I very frequently would make my if and else lines first, so they would both indent at the same level, and then Shift+Enter to add the end.
I very much like the reduced rate of "indent and add an end statement" typos from the limitation, but autocompleting blocks for else statements would be great.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/40166/batfoxsona 2018-08-24 v3c square.png)
It should be in the downward-triangle menu below the heart symbol next to the original post.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/40166/batfoxsona 2018-08-24 v3c square.png)
Did as thorough a test as I could in PICO-8 0.2.2c - in each case below, I wrote the first line of the block, hit Shift+Enter, and recorded the result, adding the closure of the block as necessary:
tl;dr the ones I found that were broken were:
- else
- x = function ()
- local function x()
[Please log in to post a comment]