cmd+c is not working on Visual Studio Code
cmd+c is not working on Visual Studio Code
I have following in settings:
"key": "cmd+c", "command": "editor.action.clipboardCopyAction",
"when": "textInputFocus" ,
This is driving me crazy, have tried everything but am unable to make copy command work in Visual studio code. I have to write click and then select copy. Shortcut does not show in VSC. Does anyone know why?
@Mark - No it works everywhere else.
– NoviceMe
Sep 13 '18 at 20:18
1 Answer
1
Open your Keyboard Shortcuts by going to File > Preferences > Keyboard Shortcuts.
In the search bar at the top, type "cmd+c" to search for all shortcuts using those two keys. Now look at the "When" column for all instances of "textInputFocus". You need to make sure that the only command mapped to cmd+c during textInputFocus is the Copy command.
Below is an example where ctrl+c will fail to copy on my Windows setup because a second command is mapped to ctrl+c during textInputFocus.

Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Do you have a conflicting keybinding? Is cmd+c bound to something else that operates at the same time? Even in the OS.
– Mark
Sep 13 '18 at 20:11