Shouldn't prevent inserting closing pair after caret leaves the block #5661
Closed
pintassilgo
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
2 arguments against this
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I have this bad JS code. It's missing a
)
in first line. If I place caret afterstr
and press)
, it should print this char, so that line ends with)) {
so that code is good. VSCode works as expected. But Cuda just moves caret to the right, keeping just one)
.Suggested way to handle this:
So, for instance, if I type in a new line
if (
, Cuda will insert the closing pair)
next to the cursor, then I type the condition expression, then press)
, Cuda doesn't insert it because it was already there: correct. But once user moves caret out of the block, for instance if they place it in other line, then moves it back, Cuda shouldn't prevent the typing of)
.I guess that's exactly how VSCode behaves.
Beta Was this translation helpful? Give feedback.
All reactions