25

Doing Quick Look on .txt files is very convenient (select in Finder and press space).

Is there a way to enable Quick Look for other text files which don't have the .txt extension (e.g., .strings files)?

0

2 Answers 2

10

People can develop plugins to allow Quick Look to support more file types. You can find Apple's Quick Look documentation here.

Luckily though Timac (aka Alexandre Colucci) has already created one. You can find Timac's Quick Look plugin for strings files here.

Just download the compiled plugin, copy it to your /Library/QuickLook folder and run the qlmanage -r command in the Terminal to refresh the Quick Look plugin cache and you should now be able to view previews of files with ".strings" extensions. He even made his plugin capable enough to read .strings files that aren't plain text; some .strings files are in a binary format.

He also supplies the source on his blog, at the same link above, which should help point you in the right direction if you wanted to create a plugin for other similar files that you want Quick Look to recognise.

1
  • It would be cool if there was a fork that attempted to display the contents of any file that isn't photo or video in the preview window. Nov 3, 2021 at 9:33
31

QLStephen is a more general solution that works for all kinds of text files.

6
  • This is the best! Works for all text files. Aug 31, 2017 at 17:42
  • This should be the accepted answer as the pointed plugin satisfies the asked question better ("without .txt extension"). Dec 23, 2017 at 23:01
  • It helped, but with files like config it still does not show the content. I have 1.4.3.
    – Pysis
    Oct 7, 2019 at 20:14
  • This hasn't worked for years...
    – PatrickT
    Apr 22, 2021 at 8:10
  • 1
    @PatrickT Working for me on Monterey (but I needed to allow the developer in Gatekeeper)
    – AnthoPak
    Apr 29, 2022 at 16:54

Not the answer you're looking for? Browse other questions tagged .