Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

keybindings 항목에 action 별 단축키를 지정할 수 있습니다. 기본 복사/붙여넣기는 Ctrl+Shift+C와 Ctrl+Shift+V 라 아래 설정으로 Ctrl-C, Ctrl-V 로 변경했습니다.

Expand
Code Block
 "keybindings":
    [
        // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
        // These two lines additionally bind them to Ctrl+C and Ctrl+V.
        // To learn more about selection, visit https://aka.ms/terminal-selection
        { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
        { "command": "paste", "keys": "ctrl+v" },

        // Press Ctrl+Shift+F to open the search box
        { "command": "find", "keys": "ctrl+shift+f" },

        // Press Alt+Shift+D to open a new pane.
        // - "split": "auto" makes this pane open in the direction that provides the most surface area.
        // - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
        // To learn more about panes, visit https://aka.ms/terminal-panes
         { "command": { "action": "splitPane", "split": "vertical", "splitMode": "duplicate" }, "keys": "alt+shift+v" },
        { "command": { "action": "splitPane", "split": "horizontal","splitMode": "duplicate" }, "keys": "alt+shift+h" },
        { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+a" },
        //closePane 
        { "command": "closePane", "keys": "alt+shift+w" },

        // switching pane
        { "command": { "action": "moveFocus", "direction": "down" }, "keys": "alt+down" },
        { "command": { "action": "moveFocus", "direction": "left" }, "keys": "alt+left" },
        { "command": { "action": "moveFocus", "direction": "right" }, "keys": "alt+right" },
        { "command": { "action": "moveFocus", "direction": "up" }, "keys": "alt+up" },

        // resizing pane
        { "command": { "action": "resizePane", "direction": "down" }, "keys": "alt+shift+down" },
        { "command": { "action": "resizePane", "direction": "left" }, "keys": "alt+shift+left" },
        { "command": { "action": "resizePane", "direction": "right" }, "keys": "alt+shift+right" },
        { "command": { "action": "resizePane", "direction": "up" }, "keys": "alt+shift+up" },

        // close window
        { "command": "closeWindow", "keys": "alt-f4" }

    ]


Terminal 은 Pane 을 분할하는 기능을 제공하는데 저는 세로 분할은 alt+shift+v, 가로 분할은 alt+shift+h, Pane 닫기는 alt+shift+w로 설정해서 사용중입니다.

...

Pane 간 전환은 alt 키와 화살표키를 사용하면 됩니다. 예로 좌측의 Pane 이로 전환하려면 alt+left, 위는 alt+up입니다.


Pane 의 크기를 조정하려면 alt+shift 과 방향키를 눌러서 조정해 주면 됩니다.

Image Added


같이 보기