Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Autoclose brace behaviour

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
lex Posted - Apr 07 2018 : 10:02:07 AM
VA_X 10.9.2258.5

I think this is a bug.

The automatic closing of braces also adds a semicolon after the closing brace if appropriate, and then the cursor is placed between the braces:
struct A {$};
If you type a closing brace the cursor jumps over the automatically inserted one. But the semicolon can't be skipped by typing it, so you end up with:
struct A {};$;

It should either not add the semicolon at all, or remember it and skip it in the same way it does with the closing brace.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 09 2018 : 2:41:18 PM
I am not sure how to approach fixing this without making things more complex and possibly unreliable most of the time. It's the edge cases where things get complex.
lex Posted - Apr 08 2018 : 05:37:51 AM
I wouldn't say often. It's just a minor annoyance when it happens.
feline Posted - Apr 07 2018 : 1:57:50 PM
I agree this isn't ideal. Is this something you often run into? I am wary of making things more complicated, rather than more simple and reliable.

There are some edge case bugs already with inserting closing brackets, and skipping over them. Here, what happens when you are moving around the code? What happens if you enter a semi-colon between the curly brackets, and then jump to the end of the line?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000