Editor setting needed to disable auto-inserting of closing parens in the code editor.
Is it possible to add a setting to the editor to disable automatic completion of brackets? It does not always work conveniently, and it is very annoying.
Here is one example - I need to turn a block of code into a multi-page comment, I put the first part of the quotes at the beginning of the block, and I have to delete the auto-completed part, because I need the closing quote in a completely different place.
another case - during rapid input, when i type something like print() there is one unexpected bracket appearing and i have to delete it manually.
This doesn't happen when typing slowly, but I've been coding for decades, and some typing patterns are automatic. I'm unlikely to be able to force myself to type slower.
Optionally would like an option to disable auto completing " " too, I just have muscle memory of manually typing it out so having it auto complete and duplicating just throws me off.
I can't stand these things or the mandatory warm orange theme, which left me to pursue an external code editor out of need, rather than for the sake of familiarity.
I really like Lite-XL, though, so overall it's a win. 🙂
- Case 1
sprite.play_flipbook("#sprite", go.property("value"))
add this line to youe code, put cursor afetr "value" and try to print: msg.url()
https://github.com/user-attachments/assets/5deec2c5-16d3-4bab-b10d-fbb1a79bcc74
- Case 2:
print()- autocompletion happens and second bracket appears
https://github.com/user-attachments/assets/372ff8a0-78ab-454e-8b30-f3f5c3ed13a3
The issues I reported in my comment were fixed in beta (should be available. in 20-30 mins)
1.10.4 alpha
Looks unnecessarily painful. You can try selecting the text and pressing " to wrap it in quotes:
https://github.com/user-attachments/assets/b07d8d42-0685-4955-ac66-2f8346cc8822
I would absolutely love a setting to turn off the auto completes for every pairing character. It's actually just added a new layer of inconvenience I have to deal with - I type all my code, then clean up the extra debris left by this auto-complete. Even today, it caused a bug, I expected the code to run, and it didn't - my code looked like this; if ()some condition) or ()some condition) because of the way I had added the brackets after...
Even when I'm typing in a block comment, and type it's, I get an extra apostrophe gets carried along as I type, like a piece of debris caught on my trolley wheel at the shopping centre, and then I type another it's or some other word with an apostrophe and the apostrophe gets eaten up and goes away, like the debris fell off. That's how I see it, helps me see the lighter side of this annoying feature. Sorry guys, I know someone put a lot of work into it, but it really should be an option.
I can't remember having this much trouble with it in other editors, perhaps they implemented it a bit better, maybe it only appears in very specific conditions. I still hate it in other editors, but here it seems to be so much worse for some reason.
+1 Please add a setting to turn off the auto completes.
Really needs fix for this.
It's coming in 1.11.0!
Awesome, thanks for the update!