I
I
Ilya Mikhailovich2021-02-27 13:23:06
phpstorm
Ilya Mikhailovich, 2021-02-27 13:23:06

How to assign a hotkey to call the last console command?

When developing, you need to constantly call the console command:

poke on the console (focus) → press the up button (to call the last command) → press Enter → return to the code.

I would like to simplify this.

Ideally, just press "F5" for this.

603a1c9128905711531191.gif

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-02-27
Goldrat @levdau

Make a Run/Debug Configuration for a frequently required command
AND be able to call it with a hotkey or a button on the panel.
603a26a005a0b991898454.png
-------
Easier through composer scripts.
Add script to composer.json

scripts: {
  "feed:update": "@php artisan feed:update"
}

Then in the interface of the storm Add Configuration -> + -> Composer Script -> Select the desired script from the drop-down list.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question