M
M
Michael2018-06-14 17:04:41
bash
Michael, 2018-06-14 17:04:41

How to create commands in PHPStorm and run them?

I want to create some commands that could be easily run for the project. For example, clearing the cache.
PHPStorm has the following options (the ones I found):
- Run menu;
- Tools menu.
They seemed quite similar to me: both have the ability to create commands for launching a file with arguments in the selected directory ... But I didn’t see a field for the command in them. I created the file, but I don't want to create my own file for each command...
Is there a function in PHPStorm (or plugins) to save the command and then run it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
display: block, 2018-06-14
@springimport

Edit -> Macros -> Start Macro Recording
Tools -> Run command...
<command in the terminal>
enter
Edit -> Macros -> Stop Macro Recording
Name the macro and assign hotkeys to it in the settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question