系统相关
首页 > 系统相关> > SublimeText3打开PowerShell进入VC2019编译环境记录

SublimeText3打开PowerShell进入VC2019编译环境记录

作者:互联网

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"快捷键

标签:PS,插件,Preferences,terminal,VC2019,Terminal,SublimeText3,ST3,PowerShell
来源: https://www.cnblogs.com/yaoyu126/p/12408199.html