Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the settings file to indicate that // can be used in paths to refer to the Project or "Open folder" root #5234

Closed
ElectricRCAircraftGuy opened this issue Feb 8, 2022 · 1 comment

Comments

@ElectricRCAircraftGuy
Copy link

ElectricRCAircraftGuy commented Feb 8, 2022

Problem description

In the default Preferences.sublime-settings file, please modify this:

	// folder_exclude_patterns and file_exclude_patterns control which files
	// are listed in folders on the side bar. These can also be set on a per-
	// project basis.
	"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", ".Trash", ".Trash-*"],
	"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", ".directory", "desktop.ini", "*.class", "*.psd", "*.db", "*.sublime-workspace"],
	// These files will still show up in the side bar, but won't be included in
	// Goto Anything or Find in Files
	"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],

to specify that // can be used in paths to indicate "project root" or "open directory root".

See my answer on this here: How do I exclude a folder from the sidebar in Sublime Text permanently, specifying it relative to the open folder?

See also: https://forum.sublimetext.com/t/a-way-to-specify-root-in-project-settings/7756/4?u=ercaguy

Preferred solution

see above

Alternatives

people can google and find my Stack Overflow answer instead, but that's not ideal

Additional Information

No response

@BenjaminSchaaf
Copy link
Member

File patterns are described in our documentation, including //: https://www.sublimetext.com/docs/file_patterns.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants