问题
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