How to add less template to new file list

When creating a new file by right-clicking the the project root and selecting new file, how can I alter the list of templates displayed? I have enabled less support so would like to create a new less file from this dialog:



Attachment(s):
Screenshot 2014-11-22 10.44.20.png
0
4 comments

Hi there,

1) Use "Edit File Templates..." option from that menu on your screenshot (or access it via "Settings (Preferences on Mac) | Editor | File and Code Templates").
2) Create new custom file template for less files -- if there is one already (bundled) -- do not use it, as at the moment it does not work for some reason.
3) Use it

https://www.jetbrains.com/phpstorm/webhelp/file-and-code-templates.html

0

Thanks. Is there a way to influence the order of templates in the menu?

0

RE: https://youtrack.jetbrains.com/issue/WEB-14300

Use "Stylesheet": it's an one-for-all compact entry (like one for PHP Class; HTML; JavaScript) -- it allows to to choose between CSS/LESS/SASS/SCSS/Stylus

0

Please sign in to leave a comment.