macos Mac OS Lion 上 Sublime text 2 的 Packages 文件夹的完整路径是什么
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7808452/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the full path to the Packages folder for Sublime text 2 on Mac OS Lion
提问by Derek Organ
I'm not seeing this question anywhere so I can only assume I'm doing something really stupid but...
我没有在任何地方看到这个问题,所以我只能假设我在做一些非常愚蠢的事情,但是......
What is the full path to the "Packages" folder for Sublime Text 2. I'm looking to install a new theme.
Sublime Text 2 的“Packages”文件夹的完整路径是什么。我想安装一个新主题。
When I go to
当我去
/Applications/Sublime Text 2.app/
/应用程序/崇高文本2.app/
There is a "Contents" Folder only
只有一个“内容”文件夹
Inside that is:
里面是:
Frameworks Info.plist MacOS Resources SharedSupport
框架 Info.plist MacOS 资源 SharedSupport
回答by Rob Cowie
/Users/{user}/Library/Application Support/Sublime Text 2/Packages
/Users/{user}/Library/Application Support/Sublime Text 2/Packages
Get to it quickly from within Sublime via the menu at Sublime Text 2... Preferences... Browse Packages
通过以下菜单从 Sublime 中快速访问它 Sublime Text 2... Preferences... Browse Packages
回答by starsinmypockets
A useful shortcut from inside Sublime Text:
Sublime Text 中的一个有用的快捷方式:
cmd-shift-P --> Browse Packages Now open user folder.
cmd-shift-P --> Browse Packages 现在打开用户文件夹。
回答by osiris
According to the documentation, in Sublime 2, the data directory should be on these locations:
根据文档,在 Sublime 2 中,数据目录应位于以下位置:
- Windows: %APPDATA%\Sublime Text 2
- OS X: ~/Library/Application Support/Sublime Text 2
- Linux: ~/.config/sublime-text-2
- Windows:%APPDATA%\Sublime Text 2
- OS X: ~/Library/Application Support/Sublime Text 2
- Linux:~/.config/sublime-text-2
This information is available here: http://docs.sublimetext.info/en/sublime-text-2/basic_concepts.html#the-data-directory
此信息可在此处获得:http: //docs.sublimetext.info/en/sublime-text-2/basic_concepts.html#the-data-directory
For Sublime 3, the locations are the following:
对于 Sublime 3,位置如下:
- Windows: %APPDATA%\Sublime Text 3
- OS X: ~/Library/Application Support/Sublime Text 3
- Linux: ~/.config/sublime-text-3
- Windows:%APPDATA%\Sublime Text 3
- OS X: ~/Library/Application Support/Sublime Text 3
- Linux:~/.config/sublime-text-3
This information is available here:http://docs.sublimetext.info/en/sublime-text-3/basic_concepts.html#the-data-directory
此信息可在此处获得:http: //docs.sublimetext.info/en/sublime-text-3/basic_concepts.html#the-data-directory
回答by Саша Черных
1. Solution
一、解决方法
Open Sublime Text console→ paste in opened field:
打开 Sublime Text 控制台→ 粘贴到打开的字段中:
sublime.packages_path()
→ Enter. You get result in console output.
→ Enter。您会在控制台输出中得到结果。
2. Relevance
2. 相关性
This answer is relevant for April 2018. In the future, the data of this answer may be obsolete.
此答案与 2018 年 4 月相关。将来,此答案的数据可能已过时。
3. Not recommended
3. 不推荐
I'm not recommended @osiris answer. Arguments:
我不推荐@osiris 回答。参数:
- In new versions of Sublime Text and/or operating systems (e.g. Sublime Text 4, macOS 14) paths may be changed.
- It doesn't takeportable Sublime Text on Windows. In portable Sublime Text on Windows another path of
Packages
folder. - It less simple.
- 在新版本的 Sublime Text 和/或操作系统(例如 Sublime Text 4、macOS 14)中,路径可能会发生变化。
- 它不需要Windows 上的便携式 Sublime Text。在 Windows 上的便携式 Sublime Text 中,
Packages
文件夹的另一个路径。 - 它不那么简单。
4. Additional link
4. 附加链接
回答by Seonghyeon Cho
You can browse package folder below method.
您可以通过以下方法浏览包文件夹。
- Use Sublime Text 2 menu :
Preferences\Browse Packages
- In Windows 7 :
C:\Users\%username%\AppData\Roaming\Sublime Text 2\Packages
(equals%appdata%\Sublime Text 2\Packages
)
- 使用 Sublime Text 2 菜单:
Preferences\Browse Packages
- 在 Windows 7 中:(
C:\Users\%username%\AppData\Roaming\Sublime Text 2\Packages
等于%appdata%\Sublime Text 2\Packages
)