-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match " after embedded expression #1798
Comments
This comment was originally written by bb...@hotmail.com you don't need to type the closing one... if you write this: print(" it should be auto-expanded to: print("") on my pc it actually works (win7/64/dart editor 4349) |
I saw both bugs (not inserting the closing quote and doubling the closing quote) on my Mac using build 4539. |
Issue #1820 has been merged into this issue. |
Set owner to @stevemessick. |
Changing to enhancement since the current behavior is working as intended, but it could use improvement. Removed Type-Defect label. |
Added this to the Later milestone. |
Confirmed. Removed this from the Later milestone. |
Removed this from the M6 milestone. |
Removed the owner. |
As per an above comment, here's a better way to solve it: type this: print( The editor should auto-add this: print() Then type this: print(" The editor should auto-close like this: print("") Sublime does this very well, and it's super useful and makes typing much faster. |
As mentioned in comment #1, the editor historically did insert pairs of quotes. I recently broke that behavior in argument lists when I made an enhancement to code completion. It will be fixed soon. I investigated this issue a couple months ago, during an auto-edit bug sweep. I believe the problem reported originally only occurs when you type everything including the closing paren, then backspace over the closing quote. When you re-type the "closing" quote the editor doesn't recognize it as a close-quote and inserts a matched pair. |
I'd be happy to close this issue if we add back the auto-close of ' and " and ( and [ |
I believe the original behavior has been restored. Feel free to re-open this one if it isn't working, modulo the currently open issue of ('') not auto-closing when typed really fast. Set owner to @stevemessick. |
[user feedback]
When typing
print("${blah}
when I then type a closing ", the editor puts in two ""
eg,
print("${blah}""
cheers,
Chris.
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 4349
////////////////////////////////////////////////////////////////////////////////////
OS: Windows 7 - amd64 (6.1)
experimental/projectsview = false
experimental/filesview = false
SDK installed = true
Dartium installed = false
////////////////////////////////////////////////////////////////////////////////////
The text was updated successfully, but these errors were encountered: