-
Notifications
You must be signed in to change notification settings - Fork 7
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
Request: config to use two semicolons ;; for line comments #1983
Comments
FWIW - in Emacs if you're in the beginning of a line we'd insert a Here's a bit of "historical" context - https://www.gnu.org/software/emacs/manual/html_node/elisp/Comment-Tips.html (it's pretty much the same for every major Lisp dialect) |
This is fixed for the next EAP build, controlled by config at Editor->General->Smart Keys->Clojure->Use ;; for line comments. |
Thank you, Colin, you are a scholar and a gentleman! |
Indeed! Thanks, Colin! |
Quick question (not a Cursive user myself) - with this improvement, can users hit A colleague of mine uses that keystroke-saving as an argument to prefer (My understanding is that this ticket is concerned with comment toggling, but not necessarily with how a |
This works by adjusting the "Comment with Line Comment" action, which will comment the current line or selected lines, unless they're all commented in which case it will uncomment them. That's the standard way by which line comments are added in IntelliJ. If the user just types |
Also have a question on behalf of a colleague on this. We enabled the option but every time we comment, either with How can we choose our own alignment of the comment? |
@arichiardi Are you using the |
The |
is it possbile to add a space after the double colon, e.g., |
Since Emacs (and I believe some other editors) heavily indent single-semicolon line comments, and since the Clojure style guide advocates using two semicolons for line comments, using a single semicolon for line comments leads to inconsistency and conflict on multiple-editor teams. My team ends up with a lot of whitespace noise in commits, as Cursive indents single-semicolon line comments one way, and then Emacs reindents them a different way, and then Cursive reindents them again... It would be really nice if there were a config option to cause
Comment line
(and any other parts of Cursive that create line comments) to use the double semicolon.The text was updated successfully, but these errors were encountered: