Ask coding questions

← Back to all posts
ctrl / doesn't working, but if i try ctrl k then ctrl c the toogle works
EricEstorani (13)

someone could help me? was suppose to work with ctrl / right?

Comments
hotnewtop
ZhongRietveld (30)

it had always been like this

EricEstorani (13)

@ZhongRietveld it doesnt for me :/, but if i select all, press ctrl + k and then ctrl + c, works.
I just wanted to know a way to fix that and to use ctrl + /.
Anyway, ty for the attention

EricEstorani (13)

@ZhongRietveld when you select (highlight) some lines and want this to becoma a toogle (# before), one way to do that is using the ctrl + /, but its not working here, I need to go to the command pallete to do that or put in each line a #

ZhongRietveld (30)

@EricEstorani So you are meaning that it is to work to delete all "#" and that you want to do this quiker?
If i understand you.

EricEstorani (13)

@ZhongRietveld no, I want to put "#" quicker, because I had to put one by one, and the hotkey to do that quicker was suppose to be "ctrl" + "/"

EricEstorani (13)

@ZhongRietveld thats the problem, its not working here! I'm trying but nothing happen whe I use ctrl + /, so I need to put the # one by one

EricEstorani (13)

@ZhongRietveld thats the problem, its not working here! I'm trying but nothing happen when I use ctrl + /, so I need to put the # one by one

firefish (947)

Here is a trick to do it if you have the vim keymaps enabled.

First, make sure you are in normal mode, and at the start of the line, by typing 0. use ^V (this means ctrl-v) to enter a visual block, then use j (down) and k (up) to select the lines. Then, just type I (note: it is capital), and type what you want at the start of the line. Hit esc afterwards.