How to set a syntax for specific file extensions in vscode

January 13, 2021

Steps

type cmd + comma (to open settings)

type in "associations" in the search bar and look for "Files: Associations"

Click "Add Item"

Type your file extension as "*.extension" under "Item" and the syntax you wish it to use under "Value"


example

{ "*.vue": "html" }

Reference

Screen Shot 2021-01-13 at 10.24.39 AM
Screen Shot 2021-01-13 at 10.24.39 AM