コンテンツにスキップ

Windows Terminal

Comprehensive Windows Terminal shortcuts and workflows for enhanced productivity on Windows.

Basic Navigation

Shortcut Description
Ctrl+Shift+T New Tab
Ctrl+Shift+W Close Tab
Ctrl+Tab Next Tab
Ctrl+Shift+Tab Previous Tab
Ctrl+Shift+1-9 Go to Tab 1-9
Alt+Shift+D Split Pane Vertically
Alt+Shift+- Split Pane Horizontally
Alt+Arrow Navigate Between Panes
Alt+Shift+Arrow Resize Pane
Ctrl+Shift+W Close Pane

Window Management

Shortcut Description
Ctrl+Shift+N New Window
Alt+F4 Close Window
F11 Toggle Full Screen
Ctrl+, Open Settings
Ctrl+Shift+P Open Command Palette
Alt+Enter Toggle Full Screen

Text Selection and Editing

Shortcut Description
Ctrl+Shift+C Copy
Ctrl+Shift+V Paste
Ctrl+A Select All
Shift+Click Extend Selection
Ctrl+Shift+F Find
F3 Find Next
Shift+F3 Find Previous
Ctrl+Shift+H Find and Replace

Profile Management

Shortcut Description
Ctrl+Shift+Space Open Dropdown
Ctrl+Shift+1 Open Profile 1
Ctrl+Shift+2 Open Profile 2
Ctrl+Shift+3 Open Profile 3
Ctrl+Shift+4 Open Profile 4
Ctrl+Shift+5 Open Profile 5

Font and Display

Shortcut Description
Ctrl+= Increase Font Size
Ctrl+- Decrease Font Size
Ctrl+0 Reset Font Size
Ctrl+Shift+ScrollWheel Zoom

Advanced Features

Shortcut Description
Ctrl+Shift+D Duplicate Tab
Ctrl+Shift+T New Tab with Same Profile
Alt+Click Open Hyperlink
Ctrl+Click Open File Path

Command Line Integration

Command Description
wt Open Windows Terminal
wt -p "Profile Name" Open with specific profile
wt new-tab Open new tab
wt split-pane Split current pane
wt -d C:\path Open in specific directory

Configuration Examples

Custom Key Bindings

\\\\{
    "command": "newTab",
    "keys": "ctrl+t"
\\\\},
\\\\{
    "command": "closeTab",
    "keys": "ctrl+w"
\\\\},
\\\\{
    "command": "splitPane",
    "keys": "alt+shift+d",
    "split": "vertical"
\\\\}

Profile Configuration

\\\\{
    "name": "PowerShell",
    "commandline": "powershell.exe",
    "hidden": false,
    "colorScheme": "Campbell",
    "fontSize": 12,
    "fontFace": "Cascadia Code"
\\\\}

Color Schemes

\\\\{
    "name": "Custom Dark",
    "background": "#0C0C0C",
    "foreground": "#CCCCCC",
    "black": "#0C0C0C",
    "blue": "#0037DA",
    "brightBlack": "#767676",
    "brightBlue": "#3B78FF"
\\\\}

PowerShell Integration

Useful PowerShell Commands

# 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 Aliases

# Add to PowerShell profile
Set-Alias ll Get-ChildItem
Set-Alias grep Select-String
Set-Alias which Get-Command

WSL Integration

WSL Commands

# 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 Profile Configuration

\\\\{
    "name": "Ubuntu",
    "source": "Windows.Terminal.Wsl",
    "commandline": "wsl.exe -d Ubuntu",
    "startingDirectory": "//wsl$/Ubuntu/home/username"
\\\\}

Productivity Workflows

Development Setup

# 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

System Administration

# 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

Best Practices

Performance Optimization

  • Use hardware acceleration when available
  • Limit scrollback buffer size
  • Disable unnecessary visual effects
  • Use appropriate refresh rates

Customization

  • Create profiles for different environments
  • Use meaningful color schemes
  • Configure appropriate fonts and sizes
  • Set up custom key bindings

Security

  • Use Windows Hello for authentication
  • Configure appropriate execution policies
  • Use separate profiles for different security contexts
  • Enable secure input for sensitive operations

Workflow Integration

  • Integrate with version control systems
  • Use shell integration features
  • Configure automatic profile switching
  • Set up custom commands and aliases