-
Notifications
You must be signed in to change notification settings - Fork 757
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
bracket auto-paring #513
Comments
rewording. please use labels instead of [] in the subject. feature itself is widely implemented, but it is great to see a detailed specification. |
Hi Tim, Best, On Sep 20, 2012, at 4:00 AM, Tim Blechmann notifications@github.com wrote:
|
For the record, I'm adding details specified in #582 (closed as duplicate).
|
On 20.09.2012, at 16:27, ifranco notifications@github.com wrote:
it may be the browser. Here it also doesn't work on FireFox. |
Thinking about it, auto-pairing and intelligent-insertion on selected text should also work for |
On Saturday 20 October 2012 13:51:08 Yvan Volochine wrote:
maybe a separate issue, but it would at least be nice to see the opening sincerely, |
Marije: It already does that. There's a preference for bracket matching color in the Fonts and Colors panel. |
On Saturday 20 October 2012 16:04:15 jamshark70 wrote:
I didn't see it happen in the default preference set... sincerely, |
On Mon, Oct 22, 2012 at 9:04 AM, sensestage notifications@github.comwrote:
Maybe you had on old config file. At some point, changing of settings |
Hiho, On Monday 22 October 2012 09:15:15 Jakob Leben wrote:
ok, that (setting the preference in the menu) seems to fix it partly. What I notice is that as I type, the bracket I type lights up in the color I sincerely, |
- hitting ENTER when between curly brackets adds a newline between brackets and put the cursor in between with correct indention - re supercollider#513 Signed-off-by: Yvan Volochine <yvan.volochine@gmail.com>
This has been implemented. The conditions under which symmetric characters are automatically inserted may be improved, but I believe the current implementation is sufficient to closet this request. |
Several code editors (vim, emacs, texmate) have a feature called bracket auto-pairing.
This is well described on Textmate's feature page:
"When writing structured text (like markup or source code) there are characters which go together in pairs. For example in a programming language you rarely type an opening brace ({) without also needing the closing brace (}).
To help you keep these characters balanced, TextMate will insert the appropriate closing character after the caret when you type the opening one. If you type the closing character TextMate is smart enough to overwrite the auto-inserted one. If you type an opening character and then delete it using backward delete (⌫) then the auto-inserted character will also be deleted. If you only want to delete the auto-inserted character, use forward delete instead (⌦).
It is also possible to wrap a selection in an open/close character by selecting text and typing the opening character. For example if you type foo, select it and type ( then TextMate will make it (foo) placing the caret after the ending parentheses."
(from: http://manual.macromates.com/en/working_with_text)
The text was updated successfully, but these errors were encountered: