一、安裝terminal包
這就不多說了:
ctrl + shift + p搜索package install- 彈出package搜索框,在搜索terminal,點擊安裝即可。
二、配置終端路徑
Cmder on Windows
{
// window下終端路徑
"terminal": "C:\\MyAPP\\cmder\\Cmder.exe",
// window下終端參數
"parameters": ["/START", "%CWD%"]
}
xterm on GNU/Linux
{
"terminal": "xterm"
}
iTerm on OS X
{
"terminal": "iTerm.sh"
}
iTerm on OS X with tabs
{
"terminal": "iTerm.sh",
"parameters": ["--open-in-tab"]
}
三、快鍵鍵
我不喜歡自定義快捷鍵,自定義很多時候是多余的,還不如通過cli去操作,另外操作別人的電腦或者別人操作你的電腦,亂配置,誰用得慣?!所以,一般默認就好。
ctrl+shift+t打開文件所在文件夾ctrl+shift+alt+t打開文件所在項目的根目錄文件夾
"keys": ["ctrl+shift+t"], "command": "open_terminal" , "keys": ["ctrl+shift+alt+t"], "command": "open_terminal_project_folder"
四、示例
打開設置

{
// The command to execute for the terminal, leave blank for the OS default
// See https://github.com/wbond/sublime_terminal#examples for examples
"terminal": "C:\\Windows\\System32\\cmd.exe",
// A list of default parameters to pass to the terminal, this can be
// overridden by passing the "parameters" key with a list value to the args
// dict when calling the "open_terminal" or "open_terminal_project_folder"
// commands
"parameters": ["/START", "%CWD%"],
// An environment variables changeset. Default environment variables used for the
// terminal are inherited from sublime. Use this mapping to overwrite/unset. Use
// null value to indicate that the environment variable should be unset.
"env": {},
"keys": ["ctrl+shift+t"], "command": "open_terminal" ,
"keys": ["ctrl+shift+alt+t"], "command": "open_terminal_project_folder" ,
}
