Programming

Visual Studio Code에 상자 선택 / 여러 줄 편집이 있습니까?

procodes 2020. 7. 16. 20:01
반응형

Visual Studio Code에 상자 선택 / 여러 줄 편집이 있습니까? [복제]


이 질문에는 이미 답변이 있습니다.

Microsoft가 Visual Studio Code라는 새로운 편집기를 출시했다고 들었는데 꽤 좋아 보입니다. 내가 필요한 주요 기능 중 하나는 여러 줄 편집이며 그 기능에 대해 아무것도 찾을 수없는 것 같습니다.


박스 선택

Windows 및 Linux : Shift+ Alt+ '마우스 왼쪽 버튼'

macOS : Shift+ option+ '클릭'

Esc 선택을 종료합니다.

MacOS : Shift+ Alt/Option+ Command+ '화살표 키'


를 눌러 Ctrl+ Alt+ DownCtrl+ Alt+ Up아래 또는 위에 커서를 삽입합니다.


Visual Studio에서 여러 줄 (일명 상자) 선택에 사용하는 바로 가기는 Shift+ Alt+ 위 / 아래 / 왼쪽 / 오른쪽입니다.

Visual Studio Code에서이를 만들려면 이러한 키 바인딩을 keybindings.json 파일 (메뉴 파일환경 설정키보드 단축키 )에 추가 할 수 있습니다 .

{ "key": "shift+alt+down", "command": "editor.action.insertCursorBelow",
                                 "when": "editorTextFocus" },
{ "key": "shift+alt+up", "command": "editor.action.insertCursorAbove",
                                 "when": "editorTextFocus" },
{ "key": "shift+alt+right", "command": "cursorRightSelect",
                                     "when": "editorTextFocus" },
{ "key": "shift+alt+left", "command": "cursorLeftSelect",
                                     "when": "editorTextFocus" }

Visual Studio Code에서 여러 개를 선택하려면 Alt키를 누른 상태에서 편집하려는 곳을 클릭하십시오.

Visual Studio Code는 여러 줄 편집을 지원합니다.


Windows에서는 Alt상자를 선택하는 동안 누르고 있습니다. 선택한 후에 편집을 시도하십시오.

참고 URL : https://stackoverflow.com/questions/30384442/does-visual-studio-code-have-box-select-multi-line-edit

반응형