processing / processing-experimental

Experimental Mode for the PDE
72 stars 25 forks source link

Add auto bracket and quotes closing #60

Open fjenett opened 10 years ago

fjenett commented 10 years ago

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

joelmoniz commented 10 years ago

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.

fjenett commented 10 years ago

Super. Thanks Joel!

GKFX commented 10 years ago

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