2017-04-19 87 views

回答

0

你可以做列選擇多種方式,

  • 正如您所指出的,將光標移動到第一列按的第一個字開始(左)和持有Alt + Shift,然後右箭頭選擇頂行 (嘗試Ctrl + Shift如果以前的組合鍵不起作用)。按下按鍵繼續選擇列,按向下鍵鍵。

  • 將光標移動到第一列 新聞的第一個字開始(左)和持有ALT + SHIFT,然後反覆按向下箭頭增添更多遊標。 (VSCode的某些版本也使用按Ctrl + Shift代替) 一旦光標加入通過簡單Shift +向右箭頭

  • 按Ctrl + d選擇字的下一個出現目前選擇的字在光標下。

  • 按Ctrl + Shift + L選擇目前正在光標選擇的字的所有出現,不管那些詞語是上述的光標下面的。

+0

他們沒有在這裏工作。我仍然無法像普通的Visual Studio ALT +箭頭那樣做。 –

+0

@AndréLuizCarletti你可能有一箇舊版本的VSCode。 –

+0

我使用的是版本1.11.2。日期2017-04-13。我需要任何特殊的插件來使捷徑工作? –

0

默認情況下,這是按Ctrl + Shift + Alt +箭頭

如果你想重新綁定到與Visual Studio對齊,把這個在您的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" 
} 

這將與該複製線或生長/智能選擇縮小默認功能衝突,這樣你就可以添加這個交換那些需要控制

, 
{ 
    "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" 
}