processing-experimental
processing-experimental copied to clipboard
Add auto bracket and quotes closing
Similar to speed tool or how it is implemented in other IDEs like Sublime Text
Here's a possible list of things that would be nice to auto-complete:
( )
{ }
[ ]
/* */
" "
' '
A possibility is to provide customization options to the user. For example, the user can specify how many new lines (if any) (s)he would like between the opening and closing brackets of { and }, and on which line between the 2 the cursor should be placed, etc. The user could also have other options, such as which symbols (s)he would like auto-completed. Note that on the down side, this might become a little complicated and confusing for the user.
Super. Thanks Joel!
I don't think /* */
should be auto-completing, since it is very common to comment out what you've already got. Likewise, "
and '
might not be inserted when before a letter - that one's more difficult to decide.
Also, many systems let you type over stuff that's been auto-inserted, so typing draw``(``)
doesn't produce "draw())".