Thank you for a very nice text editor!
I would like to turn off autocompletion of ending brackets in JavaScript ( ) { } [ ] , since I find it annoying and would like to set brackets myself.
Please tell me how to do this?
Best regards
Iwan
How to turn off autocompletion of brackets?
Press enter on empty field. You will have a "lexer JavaScript.json" file in "cudatext/settings" folder that will look something like thisIBon wrote:When you write "empty string" do you mean with a RegEx expression perhaps? Like \s{1}?
Code: Select all
{
"auto_close_brackets": "",
}
(A little caveat: it disables bracket auto closing in all lexers , maybe Alexey will clarify this)
-
- Posts: 17
- Joined: 27.12.2020 08:31
On fresh install:uvviewsoft_ wrote:steps to repeat, pls?
Added ' "auto_close_brackets": "" ' to 'lexer JavaScript.json'
Restart.
When .c and .js files opened:
* first brackets autoclose in .c (expected)
* then switch to .js - doesn't autoclose (expected)
* switch back to .c - doesn't autoclose (weird)
edit: on version cudatext-linux-gtk2-amd64-1.118.2.0.tar.xz
-
- Posts: 17
- Joined: 27.12.2020 08:31
i confirm this, it's a bug, to-fix.
https://github.com/Alexey-T/CudaText/issues/2980
https://github.com/Alexey-T/CudaText/issues/2980
-
- Posts: 17
- Joined: 27.12.2020 08:31