Log In  

I like the new feature where shift-enter auto-indents. It also adds an "end" statement which is useful for closing blocks.

I'm wondering if it should always do this, or if it could do something more context sensitive. A full IDE would be running a full parser in the background which is probably overkill. A simpler behavior would just scan the current line for block starter keywords and only indent+end if it finds one.

I'd prefer this because I'm likely to get into the habit of shift+enter, enough to do it by accident, and if it always does what I want that'd be better than having to undo and try again.

P#76272 2020-05-09 21:40 ( Edited 2020-05-09 21:49)

:: Felice
1

Good idea, but if this IS made a feature, please make it optional via config.txt, because even though I know lots of people like this behavior, I personally hate it and always turn it off.

By the way, it would need to be smart enough to know the difference between if vs. if() and while vs. while().

P#76391 2020-05-11 20:01 ( Edited 2020-05-11 20:02)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-10-06 13:11:54 | 0.005s | Q:11