简体   繁体   English

在PhpStorm / WebStorm中从grunt运行宏?

[英]Run a macro from grunt in PhpStorm/WebStorm?

I'd like to run recorded PhpStorm/Webstorm macros via grunt to perform post-build tasks in the IDE. 我想通过grunt运行录制的PhpStorm / Webstorm宏,以在IDE中执行生成后任务。 Is there a way to do this and/or run macros from the command-line? 有没有办法做到这一点和/或从命令行运行宏?

just an idea : 只是一个想法:

  1. assign a shortcut on your saved macro PHPStorm 在保存的宏PHPStorm上分配快捷方式
  2. find a way to switch focus on your OS by command (not shortcut) 找到一种通过命令(而不是快捷方式)将焦点切换到操作系统上的方法
  3. find a way to launch shortcut keyboard programmatically 找到一种以编程方式启动快捷键键盘的方法
  4. create a script that can process the 1, 2 and 3 point process 创建一个可以处理1、2和3点过程的脚本
  5. find a way to launch this script into the grunt 找到一种方法来启动此脚本

I don't know grunt and depends on the OS you are but perhaps idea for resolve your problem. 我不知道是否会咕and咕and,这取决于您使用的操作系统,但也许可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM