Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open .tmpl file same as html file in GoLand or PyCharm IDE?

I'm using GoLand IDE. When I open an HTML file I could see different colors in the file content, but when I open a .tmpl file which is used in Go-Template file, I couldn't check it like an HTML file, but when I change its postfix to .html instead of .tmpl it occurs.

So, how can I open .tmpl (Go-Template) file same as an HTML file in GoLand IDE?

Also, I tried with PyCharm IDE but the result was the same.

like image 874
Benyamin Jafari Avatar asked Dec 02 '25 05:12

Benyamin Jafari


2 Answers

You can add *.tmpl to the list of patterns registered for HTML file type in Settings | Editor | File Types

like image 172
lena Avatar answered Dec 03 '25 18:12

lena


in VSCODE :

Go to the Settings->textEditor->files->add items

then define *.tmpl as a key and html as value

*.tmpl : html

like image 34
Hamed Yarandi Avatar answered Dec 03 '25 18:12

Hamed Yarandi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!