processing-experimental icon indicating copy to clipboard operation
processing-experimental copied to clipboard

Add auto bracket and quotes closing

Open fjenett opened this issue 10 years ago • 3 comments

Similar to speed tool or how it is implemented in other IDEs like Sublime Text

fjenett avatar Apr 25 '14 14:04 fjenett

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.

joelmoniz avatar Apr 26 '14 09:04 joelmoniz

Super. Thanks Joel!

fjenett avatar Apr 29 '14 12:04 fjenett

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())".

GKFX avatar May 12 '14 16:05 GKFX