Has anyone got any idea how or if it is possible to carry parentheses auto complete in drScheme/Racket
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
DrRacket doesn’t auto-complete closing parentheses (which I’m assuming is what you’re asking about), but it will insert the correct paren shape — so you can quickly hit
]]]a few times until you’re closing off the right level.But as a sidenote, it is much easier to work in any sexpr language (or actually any other language) if you keep the parentheses (of all shapes) and double quotes etc balanced at all times. DrRacket makes this easy to do by making Alt-
(insert a pair of parens and leaving the cursor in the middle. Emacs does the same too, but DrRacket has similar keys for square brackets, curly braces, and double quotes. This style of work is very effective since you never need to count parens or even look at the highlights. It’s also easy for working on code since the same holds then — provided that the code is indented properly (which means that the parens fade to something you don’t look at consciously).