Skip to content
0

文章发布较早,内容可能过时,阅读注意甄别。

入门 ​

A new, modern, feature-rich, productive terminal application for command-line users. It includes many of the features most frequently requested by the Windows command-line community.

What is Windows Terminal ​

Windows Terminal is a modern host application for the command-line shells you already love, like Command Prompt, PowerShell, and Bash/Zsh. Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and the ability to create your own themes and customize text, colors, backgrounds, and shortcuts.

Windows Terminal is a tool in the Terminal Emulators category of a tech stack.

What are its top alternatives? ​

Windows Terminal alternatives are mainly Terminal Emulators but may also be Shells or SSH Clients.

  • Tabby Terminal
  • ConEmu
  • Termux
  • Cmder
  • iTerm2
  • MobaXterm
  • Kitty terminal
  • Alacritty
  • GNOME Terminal
  • Terminator
  • KiTTY
  • Wave Terminal

For instance, PowerShell is a Shell. For starters, people easily get confused and mistake the two, Windows Terminal and PowerShell, as one thing.

字体 ​

关于 Windows Terminal 英文字体的配置,在很多 Neovim 配置教程中都有涉及,比较常见的是使用 MesloLGS Nerd Font Mono 或者 JetBrainsMono Nerd Font Mono 这两种字体。

中文字体,可能是因为使用 Neovim 的中文用户相对较少,网上看到推荐的等宽中文字体也相对少一些。当不进行中文字体设置时,Windows Terminal 默认的中文字体是微软雅黑。这款中文字体可以支持常规、斜体、粗体、粗斜体四种字形,存在中英混排时,中文和英文字体的大小和线重也大致相当,配合良好。

以下内容用于对所选字体在各种样式下的表现进行预览:

md
- regular
- _italic_
- **bold**
- **_bold italic_**
- 正常中文
- _斜体中文_
- **粗体中文**
- **_粗斜体_**

另有一款等宽中文字体,霞鹜文楷等宽,也将就可以使用,但是中英混排时,中文相比英文字体尺寸稍显偏小,线重稍显偏细,搭配稍欠和谐。不作推荐。

推荐英文字体和中文字体:

  • MesloLGS Nerd Font Mono, 微软雅黑
  • JetBrainsMono Nerd Font Mono, Microsoft Yahei UI

设置的中英字体,中间只需使用英文逗号分隔即可。

概念 ​

In Windows Terminal, a tab page is a container that can hold a collection of panes. The hierarchy is Windows Terminal >> Tab >> Pane:

  • Windows Terminal 1
    • Tab 1
      • Pane a
      • Pane b
    • Tab 2:
      • Pane x
      • Pane y
  • Windows Terminal 2

快捷键 ​

HotKeysCommand Names
Ctrl + Shift + NStarts a new Windows Terminal
Ctrl + Shift + TOpens a new profile Tab
Ctrl + Shift + FEnables the Find button
Ctrl + shift + PStarts the Search bar
Ctrl + Shift + {1,9}Open a new Tab profile index 1 to 9
Ctrl + Alt + {1,9}Switch between Tab 1 to 9
Ctrl + TabSwitch to the Next Tab
Ctrl + Shift + TabSwitch to the previous Tab
Ctrl + Shift + SpaceOpen the profile selection drop-down menu
Ctrl + Shift + DDuplicate Tab
Alt + Shift + DDuplicate Pane
Ctrl + Shift + WClose the current running Pane
Ctrl + CCopy the selected item
Ctrl + VPaste the selected item
Ctrl + ,Launch the Windows Terminal Settings UI
Ctrl + Alt + ,Launch the default settings file
Ctrl + Shift + ,Enables searching for an app
Ctrl + =Increase the font size
Ctrl + -Decrease the font size
Ctrl + 0Reset the font size to the default
Ctrl + Shift + ↑Scroll Up in the Windows Terminal
Ctrl + Shift + ↓Scroll Down in the Windows Terminal
Ctrl + Shift + PgUpScroll Up one page
Ctrl + Shift + PgDnScroll Down one page
Ctrl + Shift + HomeScroll to the top of the history
Ctrl + Shift + EndScroll to the bottom of history
Alt + Shift + =Split a Vertical Pane
Alt + Shift + -Split a Horizontal Pane
Alt + Shift + ↑Resize the current Pane Up
Alt + Shift + ↓Resize the current Pane Down
Alt + Shift + ←Resize the current Pane Left
Alt + Shift + →Resize the current Pane Right
Alt + ↑Move focus to one Pane Up
Alt + ↓Move focus to one Pane Down
Alt + ←Move focus to one Pane Left
Alt + →Move focus to one Pane Right
Ctrl + Alt + ←Move focus to the last used Pane
Left Alt + Left Shift + PrtSnToggle ON or OFF high visibility screen mode
Win + `Summon Quake mode
F11 or Alt + CRToggle ON or OFF full-screen mode
Alt + F4Close the open Windows (entire program)

有没有可以进入全屏非专注模式的快捷键呢?

最近更新