-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Switch default comment to # #6470
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
Conversation
Having # as comment is far more common in non-support files like random configuration files as compared to //, so it will be using the correct comment at a higher chance.
There is #3799 |
Thanks for linking me to that, I think that is good, but this does a different thing, it sets the default comment character to |
Ah whoops, I hadn't looked at the changes 😅 |
dependes. I'm perfectly fine with // for c . |
We have no issues with c and c++ and rust or the likes with But instead, tons of random configuration that we do not support uses |
@@ -60,7 +60,7 @@ fn find_line_comment( | |||
pub fn toggle_line_comments(doc: &Rope, selection: &Selection, token: Option<&str>) -> Transaction { | |||
let text = doc.slice(..); | |||
|
|||
let token = token.unwrap_or("//"); | |||
let token = token.unwrap_or("#"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels like it should be configurable. And then change the default in the configuration.
If anything is, then |
Superceded by #12080 |
Having # as comment is far more common in non-support files like random configuration files as compared to //, so it will be using the correct comment at a higher chance.