192

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.

When I go to

/Applications/Sublime Text 2.app/

There is a "Contents" Folder only

Inside that is:

Frameworks Info.plist MacOS Resources SharedSupport

5 Answers 5

366

/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

5
  • 19
    It's here on windows 7 C:\Users\{user}\AppData\Roaming\Sublime Text 2\Packages
    – Farzher
    Commented Oct 29, 2012 at 16:45
  • 10
    And on Linux (Ubuntu): ~/.config/sublime-text-2/Packages
    – Ajedi32
    Commented Jun 17, 2013 at 18:31
  • 10
    In addition, the user's library directory is now hidden by default in newer versions of OSX. Run chflags nohidden ~/Library in the terminal to reveal them.
    – DA.
    Commented Jul 4, 2013 at 16:51
  • If you are using sublime text 3: /Users/{user}/Library/Application Support/Sublime Text 3/Packages Commented Apr 24, 2016 at 10:50
  • @RobCowie Major thanks! Relied on your tip when bumping jshintrc in the old version of Sublime Linter (will link to this answer from github.com/balderdashy/sails/commit/…) Commented Oct 15, 2016 at 0:55
25

A useful shortcut from inside Sublime Text:

cmd-shift-P --> Browse Packages Now open user folder.

1
  • Thank you! I was pulling my hair until now. Commented Dec 3, 2021 at 9:08
15

Sublime 2

According to the documentation, in Sublime 2, the package directory is located under the data directory. That directory should be on these locations:

  • Windows: %APPDATA%\Sublime Text 2
  • OS X: ~/Library/Application Support/Sublime Text 2
  • Linux: ~/.config/sublime-text-2

This information is available here (archive link).

Sublime 3

For Sublime 3, the locations are the following:

  • Windows: %APPDATA%\Sublime Text 3
  • OS X: ~/Library/Application Support/Sublime Text 3
  • Linux: ~/.config/sublime-text-3

This information is available here (archive link).

For the portable version the documentation above states: "If you’re using the portable version (Windows only), look for Application/Data. Here, Application refers to the directory to which you’ve extracted the compressed portable files and where the executable resides.

Note that the Data directory only exists with that name in the portable version. In full installations, it is one of the locations indicated above."

Sublime 4

For Sublime 4, when cleanly installed, the locations are the following:

  • Windows: %APPDATA%\Sublime Text
  • OS X: ~/Library/Application Support/Sublime Text
  • Linux: ~/.config/sublime-text

According to this, if Sublime 4 is installed on top of Sublime 3, it uses the ST3 directory. (archive link)

More documentation about Sublime packages here (archive link).

0
10

1. Solution

Open Sublime Text console → paste in opened field:

sublime.packages_path()

Enter. You get result in console output.


2. Relevance

This answer is relevant for April 2018. In the future, the data of this answer may be obsolete.


3. Not recommended

I'm not recommended @osiris answer. Arguments:

  1. In new versions of Sublime Text and/or operating systems (e.g. Sublime Text 4, macOS 14) paths may be changed.
  2. It doesn't take portable Sublime Text on Windows. In portable Sublime Text on Windows another path of Packages folder.
  3. It less simple.

4. Additional link

4
  • 2
    This answer is great and simple and should be the accepted answer.
    – jdhao
    Commented Feb 19, 2019 at 2:11
  • 1
    Don't click on link. Spam. Was reported. Thanks.
    – mbokil
    Commented Oct 23, 2019 at 16:28
  • @mbokil, fixed. See comments for details. I apologize for the inconvenience. Thanks. Commented Oct 23, 2019 at 16:33
  • 1
    Also try sublime.installed_packages_path() for zipped packages
    – unifreak
    Commented Dec 11, 2019 at 3:12
6

You can browse package folder below method.

  1. Use Sublime Text 2 menu : Preferences\Browse Packages
  2. In Windows 7 : C:\Users\%username%\AppData\Roaming\Sublime Text 2\Packages (equals %appdata%\Sublime Text 2\Packages)
1
  • For the second point, %APPDATA%\Sublime Text 2\Packages would be even better. Commented Mar 31, 2016 at 4:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.