Sublime Forum

What are the files in the Packages Folder?

#1

In Windows 10 if I look at the properties of this folder %AppData%/Sublime Text 3/Packages.
There is 728 folders and 5444 files.
But if I try to see them I can’t.
Even If I show hidden files in Windows 10.

Are these files hidden by Sublime Text ?
Can I see them ?
How ?

Thank you very much by advance

0 Likes

#2

The contents of the folder isn’t hidden by Sublime; in fact the Preferences > Browse Packages menu item and command palette entry are provided explicitly to allow you to open and work with that folder if you need to.

It sounds like you may have something set on your machine that stops you from being able to see the contents of the folder.

0 Likes

#3

OK thanks for your answers,

Perhaps I didn’t asked the good question !

I do these commands :
CTRL+SHIFT+P
View Package File
I choice the first proposal AddLineBefore.sublime-macro

In the Sublime Console I have the message
Unable to open /C/Users/the-user/AppData/Roaming/Sublime Text 3/Packages/Default/Add Line Before.sublime-macro

However the file is open in a window
If the cursor overfly the name of the file in the window tab the name is
/C/Users/the-user/AppData/Roaming/Sublime Text 3/Packages/Default/Add Line Before.sublime-macro

And I can’t find this file at this place !

0 Likes

#4

The short version is that the file can’t be found in that location because it’s not actually stored there. It’s actually stored inside of a sublime-package file in another location. However if a file of that name did appear in that location, then Sublime would load and use it instead of the one from inside of the sublime-package file.

So, the View Package File command is first trying to open the file as if it existed on disk, but when that fails (hence the error message), it actually sources the file from the sublime-package file. The name that it appears with contains the Packages folder because that’s a place that it could exist.

The following videos explain this in a bit more detail; the first talks about the different places and formats that packages can exist in, and the second one discusses overrides, which is the process of overriding the contents of a sublime-package file by putting a file in the Packages folder.

1 Like

#5

Coool Thank you very much.

Have a nice day :slight_smile:

0 Likes