Automation for terminal commands input in IntelliJ IDEA-family IDEs?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Automation for terminal commands input in IntelliJ IDEA-family IDEs?



If frequently input similar commands in IDE's terminal, can I automate it somehow?



For example, I use PhpStorm and frequently create MVC-controller in Laravel framework by console command like php artisan make:controller CotrollerName. The ideal that I want:


php artisan make:controller CotrollerName



Then IDE will automatically input php artisan make:controller InputtedCotrollerName to console and run it.


php artisan make:controller InputtedCotrollerName



What is currently possible instead of this?





There is a Laravel plugin for PhpStorm which supports this: confluence.jetbrains.com/display/PhpStorm/…
– yole
Aug 1 at 13:56





This may help. In short, you can create an external tool instance and have it prompt for parameters when you run it.
– Jeto
Aug 2 at 10:08




2 Answers
2



I think you overcomplicate things, simple alias would be better for this, like:


alias pamc='php artisan make:controller '



which then you can use in PHPStrorm by opening embedded terminal (Alt + F12 by default) and typing pamc ControllerName


pamc ControllerName



As seems like you use Laravel you could consider using the Laravel plugin for PhpStorm. Which should provide most of the functionality you want, and a bit more.



Or



you can do what streetturtle suggested and create alias. They can save lots of writing time.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered