Is there any way to use Windows variable in Sublime text build. I have ih s build system:
有没有办法在Sublime Text Build中使用Windows变量?我有一个S搭建的系统:
Is there any way to use Windows variable in Sublime text build. I have ih s build system:
有没有办法在Sublime Text Build中使用Windows变量?我有一个S搭建的系统:
{
"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",
},
I would kike to change user01 to be %USERNAME% as Windows variable so I don't have to change build system every time I switch computers. I have tried with %username%
and %username
but Sublime is not reading it's value.
我会考虑将user01更改为%USERNAME%作为Windows变量,这样我就不必在每次切换计算机时更改构建系统。我已经尝试使用%USERNAME%和%USERNAME%,但Sublime没有读取它的值。
I would kike to change user01 to be %USERNAME% as Windows variable so I don't have to change build system every time I switch computers. I have tried with %username%
and %username
but Sublime is not reading it's value.
我会考虑将user01更改为%USERNAME%作为Windows变量,这样我就不必在每次切换计算机时更改构建系统。我已经尝试使用%USERNAME%和%USERNAME%,但Sublime没有读取它的值。
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!