😊

Windows Terminal 小ネタ

2020/09/28に公開

設定画面

下矢印みたいなのを押して「設定」

タブ切り替えショートカットキー

Ctrl+Tab / Shift+Ctrl+Tab

変更したい場合、keybindings で以下のようにする(例えばiTerm風)

{ "command": "nextTab", "keys": "alt+shift+]" },
{ "command": "prevTab", "keys": "alt+shift+[" },

デフォルトで WSL2 (Ubuntu) を起動するようにする

defaultProfile を Ubuntu の guid で書き換えると、それが最初に起動します。

フォントを変える

profiles defaults に以下を設定します。

  • フォント種類 : fontFace
  • フォントサイズ : fontSize
    "profiles": {
        "defaults": {
            // Put settings here that you want to apply to all profiles.
            "cursorShape": "filledBox",
            "fontFace": "Myrica M",
            "fontSize": 14,
            "colorScheme": "Dracula"
        },

カラースキーム

適当にぐぐって探すといいです。とりあえず Dracula を入れてます。

起動時のウィンドウサイズを変更する

ルートに initialCols initialRows を設定すると適用されます。

{
    "$schema": "https://aka.ms/terminal-profiles-schema",

    "defaultProfile": "{...}",
    "initialCols": 200,
    "initialRows": 65,
}

Discussion