Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 - Preventing from creating ._ files

Tags:

sublimetext

Sublime Text 2 - when working on a network drive it create ._ files, and I can't seem to find a settings to turn this feature off.

I had similar problem with TextMate before and the solution was to change OakDocumentDisableFSMetaData property, but I can't find anything similar within Sublime

TextMate solution was:

defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1

http://blog.zachwaugh.com/post/309913111/preventing-textmate-from-creating-files-on-network-drive

like image 984
Dmitry F Avatar asked Jan 13 '12 21:01

Dmitry F


1 Answers

Just add ._* to the file_exclude_patterns in your Sublime Preferences. Or if you don't want it to be overwritten by further updates add this line to your User Prefs

"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "._*"]
like image 189
codajoao Avatar answered Nov 27 '22 19:11

codajoao