Par défaut, c'est Ctrl + Maj + Alt + Flèche.
Si vous souhaitez rebind à aligner avec Visual Studio, mettez dans votre keybindings.json
:
{
"key": "shift+alt+down",
"command": "cursorColumnSelectDown",
"when": "editorTextFocus"
},
{
"key": "shift+alt+left",
"command": "cursorColumnSelectLeft",
"when": "editorTextFocus"
},
{
"key": "shift+alt+pagedown",
"command": "cursorColumnSelectPageDown",
"when": "editorTextFocus"
},
{
"key": "shift+alt+pageup",
"command": "cursorColumnSelectPageUp",
"when": "editorTextFocus"
},
{
"key": "shift+alt+right",
"command": "cursorColumnSelectRight",
"when": "editorTextFocus"
},
{
"key": "shift+alt+up",
"command": "cursorColumnSelectUp",
"when": "editorTextFocus"
}
Cela conflit avec les fonctions par défaut de cette dupliquant une ligne ou de plus en plus/rétrécissement avec sélection intelligente, de sorte que vous pouvez ajouter à échanger ceux d'exiger contrôle:
,
{
"key": "shift+alt+up",
"command": "cursorColumnSelectUp",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+right",
"command": "editor.action.smartSelect.grow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+left",
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
}
Aucun d'entre eux travaillaient ici. Je ne pouvais toujours pas faire comme sur Visual Studio ALT + Arrows. –
@ AndréLuizCarletti vous avez probablement une ancienne version de VSCode. –
J'utilise la version 1.11.2. Date 2017-04-13. Ai-je besoin d'un plugin spécial pour que le raccourci fonctionne? –