Vscode: select current line keyboard shortcut gone

Created on 9 Mar 2019  路  12Comments  路  Source: microsoft/vscode


  • VSCode Version: 1.32.0 (1.32.0)
  • OS Version: 10.13.6 (High Sierra)

I constantly use cmd-I to select the current line and it suddenly stopped working today after the latest release. Please put it back! I don't see an option to add it in the Keyboard Shortcuts either. It's even on the Keyboard shortcuts PDF (https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf).

needs more info

Most helpful comment

When I use "ctrl + l" I get this message:

image

However in my key bindings the only shortcut for "ctrl + l" is expand line selection

image

Quite an annoying bug!

Remapped to "ctrl + i" and it works.

All 12 comments

It's Cmd+L now. I was pretty upset about this as well. A notice would've been nice.

https://code.visualstudio.com/updates/v1_32#_default-keybinding-change-for-expandlineselection

@ewolfe I'm using Windows. The Ctrl+L can't trigger expandLineSelection. If I change keybinding to Ctrl+I then it works. Do you know why?

@doggy8088 I don't know. I haven't used Windows in quite some time. You might have something else already mapped to Ctrl L - either at a higher system level or within VSCode itself. I would recommend searching for Ctrl L in your keyboard shortcut preferences (in VS Code).

I restarted my laptop and VSCode. It works now. Don't know why. 馃槤

@doggy8088 Can you please check what you have bound to Ctrl+L?

keyboard-conflicts

@alexandrudima I do have a existing Ctrl+L bound to a command, but the when are limited to markdown language only. So this could possibly a bug in VSCode somewhere. No matter how, my VSCode is ok now. I don't know why.

Same issue. Please put it back. You shouldn't just replace/remove a widely used keybinding...

I don't think cmd + L can perform the same action as cmd + I

When I use "ctrl + l" I get this message:

image

However in my key bindings the only shortcut for "ctrl + l" is expand line selection

image

Quite an annoying bug!

Remapped to "ctrl + i" and it works.

@HughGrovesArup YES, this message is what I was facing few days ago. (Ctrl+L) was pressed. Waiting for second key of chord....

I also had the same issue as @HughGrovesArup and @doggy8088 with the Default keybinding.

When I set the keybinding to CTRL+I, it works (as a User binding).

Then, setting it back to CTRL+L, it continues to work (as a User binding).

It is not really helpful to keep this issue open, as I plan no further changes in this area.

TL;DR Starting with 1.32, expandLineSelection is now bound to Ctrl+L and no longer to Ctrl+I. Out of the box, there is no conflict and it works under Ctrl+L.

Omnisharp binds show output to a chord which starts with Ctrl+L. I have reached out to them to remove that in https://github.com/OmniSharp/omnisharp-vscode/issues/2962

To unblock yourself, you can edit the keybindings and search for expandLineSelection and bind it back to Ctrl+I.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trstringer picture trstringer  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

vsccarl picture vsccarl  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments