实现了一个奇怪的需求,windows 下,在 sublimetext 里,用管理员身份打开项目根目录的 cmd terminal 插件配置如下
{
"terminal": "powershell.exe",
"parameters": [
"-WindowStyle", "Hidden",
"-Command", "Start-Process", "-Verb", "RunAs", "cmd.exe",
"-ArgumentList", "'/k pushd "%CWD%"'"
]
}
全文链接: http://fish119.site/2018/02/19/Windows10-Sublime-Text-3-%E4%BB%A5%E7%AE%A1%E7%90%86%E5%91%98%E8%BA%AB%E4%BB%BD%E8%BF%90%E8%A1%8CCMD-2/
1
weyou 2018-02-19 22:51:19 +08:00 via Android
多谢分享,我觉得这功能挺有用
|