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

Enable add line comments shortcuts in Vim mode #6574

Open
yiqiangjizhang opened this issue Apr 30, 2021 · 3 comments
Open

Enable add line comments shortcuts in Vim mode #6574

yiqiangjizhang opened this issue Apr 30, 2021 · 3 comments

Comments

@yiqiangjizhang
Copy link

Is your feature request related to a problem? Please describe.
I am used to add line comments with the default keybindings : CTR+K+C and CTR+K+U

Describe the solution you'd like
I want to activate those in vim mode as well. But I can't manage to do it.

I want to ask if you guys can help me out with this issue and other new ways of doing it!

@htjain
Copy link

htjain commented May 3, 2021

Try disabling following key binding.

image

@yiqiangjizhang
Copy link
Author

Try disabling following key binding.

image

It still does not work though

@J-Fields
Copy link
Member

Try disabling following key binding.

This is generally bad practice and should only be done when absolutely necessary. You can use vim.handleKeys to do (mostly) the same thing.

We support the gc operator, so gcc toggles a line comment. You can use that, remap it to something you prefer, or remap something to editor.action.addCommentLine directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants