Is it possible to set environment variables in a .sublime-project file?

六月ゝ 毕业季﹏ 提交于 2019-12-22 05:29:33

问题


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-also-be-able-to-set-environment-variable/

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


回答1:


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.

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

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



来源:https://stackoverflow.com/questions/26136660/is-it-possible-to-set-environment-variables-in-a-sublime-project-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!