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
Please sign in to leave a comment.
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
Thanks. Is there a way to influence the order of templates in the menu?
From user side -- No
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