Takeshi Tokugawa YD
Takeshi Tokugawa YD

Reputation: 923

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:

  1. Some simple action like shortcut pressing
  2. Modal window "Please, input controller name".
  3. Pressing Enter

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

Answers (2)

MrFibunacci
MrFibunacci

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

streetturtle
streetturtle

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

Related Questions