Editing Prettier options in Vscode


I need to enable .tpl files to be formatted like HTML by Prettier.
I’ve found on GitHub this block of code who should do it :

 overrides: [
   files: '*.html.tpl',
   options: { parser: 'html' },

How should I implement it?


Go to File -> Preferences -> Settings.

In the search for box, search for “Associations” and then click on “Edit on settings.json”.

Add the following to the JSON file:

"files.associations": {
  "*.html.tpl": "html"

Answered By – Morta1

Answer Checked By – Timothy Miller (AngularFixing Admin)

Leave a Reply

Your email address will not be published.