Joshua Soileau
Joshua Soileau

Reputation: 3005

VSCode: Permanently change syntax highlighting on a single file or set of files?

I have a markdown file which I would like to permanently highlight using JSON syntax.

But I don't want to treat ALL .md files this way, just a few of them.

Is there a way to accomplish that, so I don't have to manually change the highlighting each time I open the file?

Upvotes: 1

Views: 308

Answers (1)

Rob Lourens
Rob Lourens

Reputation: 16089

You can change this with the 'files.associations' setting. For example

"files.associations": {
    "*.md": "json"
}

Upvotes: 2

Related Questions