MacOS Big Sur – Set quick look provider for specific file types

big surmarkdownquicklook

My default app to open .md markdown files is VS Code, which unfortunately doesn't provide quick look support for markdown files: enter image description here

I've installed other apps that provide quick look for markdown files, how do I make quick look to use them without changing the default app for opening markdown files?

Best Answer

AFAIK, the default app for opening documents and the QuickLook generator for previewing them are two completely separate things.

If you have a QuickLook generator file for the .md format, then that will be used by the QL manager.

The Terminal command qlmanage provides a way to get the status of the QL manager, and to configure it in a limited way.

> qlmanage -m | grep "md"
  com.unknown.md -> /Users/Ben/Library/QuickLook/QLMarkdown.qlgenerator (1.3.3)

You can force which QL generator is used with

qlmanage -g /path/to/generator/