Skip to content
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

Feat request: Toggle code block by pressing a key in a single line (context aware) #447

Open
enter-dragon opened this issue Mar 21, 2024 · 0 comments

Comments

@enter-dragon
Copy link

Hi! Currently this doesn't work:

01 #include <stdio.h>
02 
03 int main() {
04    This is a line comment
05    printf("Hello, World!\n"); // Printing Hello World
06    /*
07        This is a block comment.
08        It spans multiple lines.
09    */
10    return 0;
11 }

I have mapped toggle to <leader>x, I want to toggle all the block comment when I hit this keymap on line 07 (or 08). But currently is not working. The result of this command right now is the following:

01 #include <stdio.h>
02 
03 int main() {
04    This is a line comment
05    printf("Hello, World!\n"); // Printing Hello World
06    /*
07        // This is a block comment.
08        It spans multiple lines.
09    */
10    return 0;
11 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant