コンテンツにスキップ

Windows ターミナル

ショートカット説明
Ctrl+Shift+T新しいタブ
Ctrl+Shift+Wタブを閉じる
Ctrl+Tab次のタブ
Ctrl+Shift+Tab前のタブ
Ctrl+Shift+1-9タブ1-9に移動
Alt+Shift+D垂直に分割ペイン
Alt+Shift+-水平に分割ペイン
Alt+Arrowペインの間を移動する
Alt+Shift+Arrowペインのサイズ変更
Ctrl+Shift+Wペインを閉じる
ショートカット説明
Ctrl+Shift+N新しいウィンドウ
Alt+F4ウィンドウを閉じる
F11フルスクリーンを切り替え
Ctrl+,設定を開く
Ctrl+Shift+Pコマンドパレットを開く
Alt+Enterフルスクリーンを切り替え
ショートカット説明
Ctrl+Shift+Cコピー
Ctrl+Shift+Vペースト
Ctrl+Aすべて選択
Shift+Click選択範囲を拡大
Ctrl+Shift+F検索
F3次を検索
Shift+F3前を検索
Ctrl+Shift+H検索と置換
ショートカット説明
Ctrl+Shift+Spaceドロップダウンを開く
Ctrl+Shift+1プロファイル1を開く
Ctrl+Shift+2オープンプロファイル 2
Ctrl+Shift+3オープンプロファイル 3
Ctrl+Shift+4オープン プロファイル 4
Ctrl+Shift+5オープンプロファイル 5
ショートカット説明
Ctrl+=フォントサイズを大きくする
Ctrl+-フォントサイズを小さくする
Ctrl+0フォントサイズをリセット
Ctrl+Shift+ScrollWheelZoom
ショートカット説明
Ctrl+Shift+Dタブを複製
Ctrl+Shift+T同じプロファイルで新しいタブ
Alt+Clickハイパーリンクを開く
Ctrl+Clickファイルパスを開く
コマンド説明
wtWindows Terminalを開く
wt -p "Profile Name"特定のプロファイルで開く
wt new-tab新しいタブを開く
wt split-pane現在のペインを分割
wt -d C:\path特定のディレクトリで開く
\\\\{
    "command": "newTab",
    "keys": "ctrl+t"
\\\\},
\\\\{
    "command": "closeTab",
    "keys": "ctrl+w"
\\\\},
\\\\{
    "command": "splitPane",
    "keys": "alt+shift+d",
    "split": "vertical"
\\\\}
```## 設定例

### カスタムキーバインディング
```json
\\\\{
    "name": "PowerShell",
    "commandline": "powershell.exe",
    "hidden": false,
    "colorScheme": "Campbell",
    "fontSize": 12,
    "fontFace": "Cascadia Code"
\\\\}
```### プロファイル設定
```json
\\\\{
    "name": "Custom Dark",
    "background": "#0C0C0C",
    "foreground": "#CCCCCC",
    "black": "#0C0C0C",
    "blue": "#0037DA",
    "brightBlack": "#767676",
    "brightBlue": "#3B78FF"
\\\\}
```### カラースキーム
```powershell
# Navigation
Set-Location C:\path\to\directory
Get-ChildItem  # List files
Get-Location   # Current directory

# File Operations
New-Item -ItemType File -Name "filename.txt"
New-Item -ItemType Directory -Name "foldername"
Copy-Item source.txt destination.txt
Remove-Item filename.txt

# System Information
Get-ComputerInfo
Get-Process
Get-Service
Get-EventLog -LogName System -Newest 10
```## PowerShell 統合

### 便利なPowerShellコマンド
```powershell
# Add to PowerShell profile
Set-Alias ll Get-ChildItem
Set-Alias grep Select-String
Set-Alias which Get-Command
```### PowerShellエイリアス
```bash
# List WSL distributions
wsl --list --verbose

# Set default distribution
wsl --set-default Ubuntu

# Open WSL in Windows Terminal
wsl

# Run specific command in WSL
wsl ls -la
```## WSL 統合

### WSLコマンド
```json
\\\\{
    "name": "Ubuntu",
    "source": "Windows.Terminal.Wsl",
    "commandline": "wsl.exe -d Ubuntu",
    "startingDirectory": "//wsl$/Ubuntu/home/username"
\\\\}
```### WSLプロファイル設定
```bash
# Multi-pane development environment
# Pane 1: Code editor
code .

# Pane 2: Development server
npm start

# Pane 3: Git operations
git status

# Pane 4: File watching/testing
npm test -- --watch
```## 生産性ワークフロー

### 開発セットアップ
```powershell
# System monitoring panes
# Pane 1: Process monitoring
Get-Process|Sort-Object CPU -Descending

# Pane 2: Event log monitoring
Get-EventLog -LogName System -Newest 20

# Pane 3: Service status
Get-Service|Where-Object \\\\{$_.Status -eq "Running"\\\\}

# Pane 4: Network monitoring
netstat -an
```### システム管理

### パフォーマンス最適化

- 利用可能な場合はハードウェアアクセラレーションを使用
- スクロールバックバッファサイズを制限
- 不要な視覚効果を無効化
- 適切なリフレッシュレートを使用

### カスタマイズ

- 異なる環境用のプロファイルを作成
- 意味のあるカラースキームを使用
- 適切なフォントとサイズを設定
- カスタムキーバインディングを設定

### セキュリティ

- Windows Helloで認証
- 適切な実行ポリシーを設定
- 異なるセキュリティコンテキスト用に別のプロファイルを使用
- 機密操作用のセキュアな入力を有効化

### ワークフロー統合

- バージョン管理システムと統合
- シェル統合機能を使用
- 自動プロファイル切り替えを設定
- カスタムコマンドとエイリアスを設定