Closed George1825 closed 1 year ago
Yes, Cud has such an option. Option is called with word “bracket” AFAIR. Open the “default config” and search in it.
Yes, Cud has such an option. Option is called with word “bracket” AFAIR. Open the “default config” and search in it.
Get it!For " or ', can we do same thing?
yes, option supports quote chars too. default.json tells:
Auto-pair some chars on typing.
Value must have some of supported chars without spaces:
( [ { < ' " ` ~ * #
(Don't forget that JSON file needs "-char in escaped form.)
yes, option supports quote chars too. default.json tells:
Auto-pair some chars on typing. Value must have some of supported chars without spaces: ( [ { < ' " ` ~ * # (Don't forget that JSON file needs "-char in escaped form.)
Sorry, I didn't really get how to use escape character in json. That's also what I met when try to add quotation marks in extension selection plugin. I've tried several ways, but didn't work: //(Don't forget that JSON file needs "-char in escaped form.) Original: "auto_close_brackets": "([{", Option 1: "auto_close_brackets": "([{/'/"", Option 2: "auto_close_brackets": "([{-'-"", Option 2: "auto_close_brackets": "([{"'""",
Char \
must be used as escape char.
"auto_close_brackets": "([{'\"",
"-char needs to be escaped. '-char not.
Char
\
must be used as escape char.
"auto_close_brackets": "([{'\"",
"-char needs to be escaped. '-char not.
Thanks,now for brakets and ‘,it works. For “, it still doesn't work. Could you please try it again?
For “, it still doesn't work.
The " char is different than “. For me it works for " char if I have
"auto_close_brackets": "([{'\"",
and if I type "-char in the new line (no nearest word chars).
Maybe I figure it out.
I already set the "auto_close_brackets": "([{'\""
, in user.json and it works now.
Maybe default.json is overwriten by user.json.
You should NOT write value to default.json. https://wiki.freepascal.org/CudaText#Configs
Get it, many thanks!
For ( or “,is there a function to automaticly to the flowings( which I used to use in Spyder IDE): 1.When typing ( or “ ,auto typing the pairs ( ) and put the caret in the middle。 2.When select some content and typing (, auto add pairs ( ) to the selected contents rather than replace it. Is there already some features like this? Thanks!