SublimeText3以下简称"ST3".

一. 配置记录

  1. 安装ST3插件Terminal;
  2. 浏览ST3插件(Preferences->Browse Packages...);
  3. 进入Terminal文件夹
  4. 修改PS.bat, 在我的机器上如下, 其他机器需要根据编译环境自行设置:
REM start powershell -noexit -ExecutionPolicy RemoteSigned "%sublime_terminal_path%\PS.ps1"
start powershell -noe -c "& {Import-Module """C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell f7626833; Set-Location \"%1\";}"
  1. 修改Terminal插件配置(Preferences->Packages Setting->Terminal->Setting Default)如下:
{
  "terminal": "",
  "parameters": ["%CWD%"],
  "env": {}
}

二. 检验

在ST3中, 查看文件, 然后按"ctrl+shift+t"快捷键

相关文章:

  • 2021-04-30
  • 2021-07-24
  • 2022-01-15
  • 2022-12-23
  • 2021-08-19
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-25
  • 2021-03-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-11-01
  • 2021-11-15
相关资源
相似解决方案