text-editor - sublime text 2如何设置环境变量

标签 text-editor sublimetext2 ubuntu-12.04

我想设置环境变量。

上面写着 https://docs.sublimetext.io/guide/extensibility/snippets.html

Snippet Features Environment Variables Snippets have access to contextual information in the form of environment variables. Sublime Text sets the values of the variables listed below automatically.

You can also add your own variables to provide extra information. These custom variables are defined in .sublime-options files.

但我找不到 .sublime-options 文件。

我想设置 $TM_FILENAME 和 $TM_FULLNAME 变量。

最佳答案

此线程可能有帮助:http://www.sublimetext.com/forum/viewtopic.php?f=3&t=3852 . 我在我的 macbook 上测试它并为我工作。

关于text-editor - sublime text 2如何设置环境变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12901537/

相关文章:

algorithm - 为什么文本编辑器在编辑很长的行时速度很慢?

text-editor - 如何使MS Visual Code透明?

c++ - Sublime Text 3 以 C++ 方式打开 C 文件

html - Sublime Text 2 换行缩进

c - 打开时实时更新文件/proc/<pid>/status

debian - 在/usr/lib/xen-tools/with Debian Squeeze 中将较新的 ubuntu 版本添加到 XEN

version-control - 什么以及如何对 Github 上的文本编辑器(Sublime Text)设置进行版本控制,以便在任何机器上都可以随时使用这些设置进行编码?

sublimetext2 - Sublime Text - 拼写检查,但只有某些文件扩展名

python - SublimeREPL 返回无用的错误,在 IDLE 中起作用

python - 修补 python eventlet 以解决 Ubuntu 12.04 中的 OpenSSL TLS 1.1 错误