Sublime Forum

Hide folders (__pycache__, venv...)

#1

Hey there,

I am new to sublime and I am having trouble hidding some folders and files. I’ve have googled a lot about it, and I think I am doing it right, but I can’t seem to make it work.

I am trying to hide pycaches folders, for instance, but I can always see it on the tree. The files are hidden, though, I can only see the folder.

My config is like this:

"file_exclude_patterns":
[
	"*.pyc",
	"*.pyo",
	"*.exe",
	"*.dll",
	"*.obj",
	"*.o",
	"*.a",
	"*.lib",
	"*.so",
	"*.dylib",
	"*.ncb",
	"*.sdf",
	"*.suo",
	"*.pdb",
	"*.idb",
	".DS_Store",
	"*.class",
	"*.psd",
	"*.sublime-workspace"
],
"folder_exclude_patters":
[
	".git",
	".hg",
	"CVS",
	"__pycache__",
	"*/__pycache__",
	"venv",
],
0 Likes

#2

Your setting is misspelled. You are missing a n within patterns.

	"folder_exclude_patterns":
	[
		".git",
		".hg",
		".mypy_cache",
		".svn",
		".vscode",
		"__pycache__",
		"CVS",
		"venv"
	],
1 Like

#3

The PackageDev package would have shown you this (and offered completions for the setting) :wink:

1 Like