是否可以在.sublime-project文件中设置环境变量? [英] Is it possible to set environment variables in a .sublime-project file?

查看:122
本文介绍了是否可以在.sublime-project文件中设置环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在打开项目时在Sublime Text中设置一些环境变量.在大多数情况下,这仅适用于某些需要对其进行设置的插件.

I'd like some environment variables to be set in Sublime Text when I open the project. This is for the most part just for some plugins that require them to be set.

我相信对此有一个功能要求,但是我仍然想知道这是否不可能以某种方式实现.

I believe that there is a feature request for this, but I was still wondering if this isn't possible in some way or another.

http://sublimetext. userecho.com/topic/103881-sublime-project-should-to-set-set-environment-variable/

我要问的是与GoSublime插件有关的问题,为此,我想在项目之间更改GOPATH.

I'm asking this specifically in relation with the GoSublime plugin, for which I'd like to change the GOPATH between projects.

推荐答案

我看到您将我的请求链接到了高级的userecho. 不幸的是,那儿什么都没发生,所以我开发了自己的插件来实现.

I see that you linked my request to sublime userecho. Unfortunately nothing really happened over there, so I developed my own plugin to do that.

如果您仍然感兴趣,请查看以下内容: https://bitbucket.org/daniele-niero/sublimeprojectenvironment

If you are still interested, please look at this: https://bitbucket.org/daniele-niero/sublimeprojectenvironment

我还向Package Control发出了拉取请求,以使其可以使用该插件.

I have also made a pull request to Package Control to make the plugin available with it.

这篇关于是否可以在.sublime-project文件中设置环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆