-
I'm pretty new to helix so apologies for likely missing something obvious, and it's ok by me if this ability doesn't exist yet, but wanted to check: Say i have some code: fn json_pointer_to_value<'a>(json: &'a Value, pointer: &str) -> Option<&'a Value> {
pointer.split('.').try_fold(json, |acc, part| match acc {
Value::Object(map) => map.get(part),
_ => None,
})
} and I want to comment out some lines so it looks like fn json_pointer_to_value<'a>(json: &'a Value, pointer: &str) -> Option<&'a Value> {
pointer.split('.').try_fold(json, |acc, part| match acc {
// Value::Object(map) => map.get(part),
// _ => None,
})
} Then i'd like to be able to select those lines and get back to the original (uncommented) state. What are the ways one can achieve this presently, if any? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Select them both (maybe use
My brain forgot the default on purpose as it was not good :) You can select both and press it again and hey presto they are uncommented! There is PR to do proper multi line block comments in the works: #4718 |
Beta Was this translation helpful? Give feedback.
-
Is there actual multiline comment support and not multiple single line comments? As well as something of the equivalent for Svelte files and such (https://github.com/JoosepAlviste/nvim-ts-context-commentstring) |
Beta Was this translation helpful? Give feedback.
The current default keybinding is
C-c