提问人:IGRACH 提问时间:9/10/2023 更新时间:9/10/2023 访问量:13
Sublime Text Build 中的 Windows 变量
Windows variable in Sublime Text Build
问:
有没有办法在 Sublime 文本构建中使用 Windows 变量。我有ih的构建系统:
有没有办法在 Sublime 文本构建中使用 Windows 变量。我有ih的构建系统:
{
"name": "Python 11",
"cmd": ["C:/Users/user01/AppData/Local/Programs/Python/Python311/python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
},
我会将 user01 更改为 %USERNAME% 作为 Windows 变量,这样我就不必在每次切换计算机时更改构建系统。我试过了,但 Sublime 没有阅读它的价值。%username%
%username
我会将 user01 更改为 %USERNAME% 作为 Windows 变量,这样我就不必在每次切换计算机时更改构建系统。我试过了,但 Sublime 没有阅读它的价值。%username%
%username
答: 暂无答案
评论