Tagged: xcode

QuickLook Text Files in OS X

You know that file with the .ino extension? The one that you know is just plain text, but the Finder refuses to allow a QuickLook? Here’s a quick trick to change the file type, without changing the file’s extension to .txt or similar.

Note that you’ll need Xcode installed for this to work.

In your .profile, create an alias such as:

alias totext='find ./ -name "$1" | /Applications/Xcode.app/Contents/Developer/usr/bin/SetFile -type TEXT'

Be sure to source your .profile after you’ve added the alias.

Then simply use the alias to update the type to TEXT for any files in the current (and sub) directory.

$ totext *.properties