Krillko
Krillko

Reputation: 645

PhpStorm: set file type for a single file

I've inherited a project where all Smarty template (should be .tpl) are named .html

Problem is that there are html files also, so I can't globally redefine .html to always be smarty. Also, with 10 years+ of legacy code, I can't just rename the file.

Is there anyway I can get PhpStorm to recognize a single file (or a directory) as another format then the file name?

Upvotes: 1

Views: 292

Answers (1)

st'sahib
st'sahib

Reputation: 183

Better late than never: there is an option in the file's contextmenu (right mousebutton) where you can set the type for one (or multiple files). rest is self explaining.

right click

Upvotes: 1

Related Questions