Reputation: 923
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:
Then IDE will automatically input php artisan make:controller InputtedCotrollerName
to console and run it.
What is currently possible instead of this?
Upvotes: 0
Views: 206
Reputation: 1
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.
Upvotes: 0
Reputation: 5850
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
Upvotes: 1