Perl5-IDEA
Perl5-IDEA copied to clipboard
New File: defaulting to Script instead of Package
It hit me many times
everytime I do File
-> New
-> Perl5 File
I accidentally create a module with .PM
extension instead of a script.
I think scripts should be the default because they are created/used more often than modules for Perl code.
There were .pl
before .pm
existed historically as well.
Thanks.
Well, this is questionable. E.g web application will have a single starter script and all the code going to be in pm controllers/templates. Not in pl scripts. Also, here is alphabetical sorting, Package and script. not extensions. However, I can understand your concern and feels like IDE should remember last choice or smth. But this feels like an IDE feature not a plugin.
Can we configure it on plugin-level without changing the defaults?
An option for this would be very useful.
Also, if I name my script .pl
it still creates it as a module (suffix could be read as well).
configure what? Atm this menu is pretty static and dumb.
Configure the selected item or the order of items in the menu.
I see, but might be worthy to enhance it a bit for that reason.
No, it's not possible atm
Haha saw you mixing those on YouTube as well 😋
true :) but usually in real projects you are working with pms