change duplicate line shortcut to CTRL + SHIFT + Up/Down instead of ALT + SHIFT + Up/ Down
because the ALT + SHIFT shortcut is for change between languages if you have more than one.
and that will effect the productivity of the programmer and bothers him.
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
I think it's unlikely that the default settings will be changed.
Assuming you're on Windows, one solution is described here:
Alternatively, change your own VSCode settings.
I know that's hard to do
so i suggest to make both shortcuts works so that people with multi languages can work comfortable
and then after many updates you can remove the old shortcut safely or leave both works
i checked right now that CTRL + SHIFT + Up/Down don't do any thing so you won't break any other feature
Looks like this is first request to change this shortcut because of this specific reason (request for Ctrl+D is just because other used to it) (Request).
You can easily reassign keybindings for these commands through UI (Right click and Change Keybinding) or copy next config to your keybindings.json
{
"key": "ctrl+shift+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+up",
"command": "-editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
}
P.S. Proposed change will break workflow for others: Ctrl+Shift to change language and muscle memory for Shift+Alt+↑/↓
thanks for reassign keybindings method
change the shortcut to anything else will be good,
but change it to something familiar like CTRL + D (in Brackets) or like CTRL + SHIFT + Up/Down (in sublime) will be better
Ctrl+D is popular request, however it's already used for creating multiple-selections. So this will be a big snow ball of breaking changes to avoid overlaps (and then a lot of issues with a lot of ! in title).
Just in case - VS Code supports keymaps that help to bring most of keyboard shortcuts for other popular editors https://marketplace.visualstudio.com/search?target=VSCode&category=Keymaps&sortBy=Installs
We will not change the default keybinding for this action. In fact, it is highly unlikely that we will change any default keybindings... The reason is simply that the disturbance and frustration caused to those who are used to the current default would not be worth it.
That being said, it is trivial for you to change the keybinding on your machine or you can use one of the keymap extensions.
Most helpful comment
Ctrl+D is popular request, however it's already used for creating multiple-selections. So this will be a big snow ball of breaking changes to avoid overlaps (and then a lot of issues with a lot of ! in title).
Just in case - VS Code supports keymaps that help to bring most of keyboard shortcuts for other popular editors https://marketplace.visualstudio.com/search?target=VSCode&category=Keymaps&sortBy=Installs