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

cmd + shift + left/right don't work #62810

Closed
mergesort opened this issue Nov 8, 2018 · 10 comments
Closed

cmd + shift + left/right don't work #62810

mergesort opened this issue Nov 8, 2018 · 10 comments
Assignees
Labels
info-needed Issue requires more information from poster macos Issues with VS Code on MAC/OS X

Comments

@mergesort
Copy link

Issue Type: Bug

On macOS the key commands cmd + shift + left and cmd + shift + right will highlight to the beginning and end of line respectively. I use this constantly when programming, and it hasn't worked in VS Code for years now, but admittedly I was lazy enough to not file a bug and instead stopped using VS Code. I'd love to use VS Code though, this IDE is terrific! But this is a dealbreaker for me that I haven't figured how to work around unfortunately.

Thanks so much for the hard work and terrific app!

VS Code version: Code 1.28.2 (7f3ce96, 2018-10-17T00:18:43.347Z)
OS version: Darwin x64 17.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz (8 x 3100)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.06GB free)
Process Argv -psn_0_2286126
Screen Reader no
VM 0%
Extensions (17)
Extension Author (truncated) Version
simple-react-snippets bur 1.2.2
npm-intellisense chr 1.3.0
path-intellisense chr 1.4.2
vscode-css-modules cli 0.2.3
vscode-svgviewer css 1.4.7
vscode-eslint dba 1.7.0
EditorConfig Edi 0.12.5
json-tools eri 1.0.2
flow-for-vscode flo 0.8.5
auto-close-tag for 0.5.6
auto-rename-tag for 0.0.15
vscode-yarn gam 1.6.0
debugger-for-chrome msj 4.11.0
color-highlight nau 2.3.0
preview-vscode sea 1.4.6
vscode-todo-highlight way 1.0.4
markdown-all-in-one yzh 1.7.0
@vscodebot vscodebot bot added the editor-contrib Editor collection of extras label Nov 8, 2018
@alexdima alexdima added the macos Issues with VS Code on MAC/OS X label Nov 10, 2018
@alexdima
Copy link
Member

@mergesort Out-of-the-box we ship with those keybindings on the mac. What does searching for "cmd+shift+left" in the keybindings editor show?

e.g.

keyboard-conflicts

@alexdima alexdima added the info-needed Issue requires more information from poster label Nov 10, 2018
@alexdima alexdima removed the editor-contrib Editor collection of extras label Nov 10, 2018
@mergesort
Copy link
Author

Hey @alexandrudima. This is what ⌘+shift+left and ⌘+shift+right look like for me now.

⌘+shift+left
cmd shift left

⌘+shift+right
cmd shift right

I removed the mapping from ⌘+shift+left, which defaulted to the same thing ⌘+shift+right had, except for start instead of end. It still doesn't behave as expected though unfortunately, in either case.

Let me know if I can provide any more information!

@alexdima
Copy link
Member

Can you look at your keybindings.json file and check if you have any rules in there? Can you disable all extensions (they can remap keybindings) and check in the keyboard list again?

@mergesort
Copy link
Author

I've disabled all of my extensions, and emptied out my keybindings.json so it only contains [] now, and the same behavior still persists. This is an issue that I've had even on clean installed machines, so I don't believe it's due to any customizations I may have installed.

@rebornix
Copy link
Member

@mergesort after disabled all extensions, can you try

  • search cursorHomeSelect in the keybindings editor?
  • Press the first option button in the the search inputbox (looks like a keyboard and its title is "Record Keys"), and then press "Cmd+Shift+Left" and see what's being inserted into the search box?

@mergesort
Copy link
Author

It seems like the damndest thing, I cannot type ⌘+shift+left into the box either.
cmd shift left

I can type ⌘+shift+up/down though.
cmd shift up

And this only in VS Code, no other apps.

@mergesort
Copy link
Author

I suspect this issue is somewhat dead but I do have a slight update. I still can't get it to work, but I noticed that for the first few seconds of the app, the keyboard command does work. This makes me suspect that it's something that is lazily loaded as the app initializes, but I don't really have any more information I can provide to help unfortunately.

Any updates or anything I can do to help?

@alexdima
Copy link
Member

alexdima commented Jan 7, 2019

@mergesort I think you might have something installed on your machine that is causing this weirdness (outside of VSCode). Can you please try with a guest account perhaps (which would not start up all the software you typically run)... ?

@vscodebot
Copy link

vscodebot bot commented Jan 14, 2019

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Jan 14, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 28, 2019
@alexdima
Copy link
Member

alexdima commented Sep 7, 2019

Fix courtesy of @brucejo75 in #80182


Fix:

Hunted around...
Discovered that Mission Control was using all of these keys. So I remapped them all to other Function keys (that I do not use in editing).

There are 2 places to check:

  1. System preferences->Mission Control
  2. System preferences->Keyboard->Shortcuts->Mission Control

After remapping, it still did not work!

Close and restart Visual Studio Code and then it works!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster macos Issues with VS Code on MAC/OS X
Projects
None yet
Development

No branches or pull requests

3 participants