Visual Studio Code 集成终端
最后编辑于: 2018-05-27Visual Studio Code 的 集成终端
唤出终端
有三种方法可以唤出终端
- 通过菜单 View | Toggle Integrated Terminal
; - 通过 Ctrl + Shift + P 从命令面板使用 View:Toggle Integrated Terminal
; - 快捷键 Ctrl+`
配置文件
集成终端在 Linux 和 OS X 上默认调用 $SHELL
变量作为默认终端%COMSPEC%
变量terminal.integrated.shell.*
段terminal.integrated.shellArgs.*
段来配置传递给终端的参数
Windows 上可以使用这些选项更改默认的集成终端bash.exe
甚至是 Bash on Ubuntu (on Windows)
// 64-bit cmd it available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe"
// 64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"
另外terminal.integrated.fontFamily
terminal.integrated.fontSize
terminal.integrated.lineHeight
三个选项来定义终端的字体
选中运行
在编辑器中选定的字体