打开PHPStorm项目时可以自动运行终端命令吗? [英] Can I automatically run a terminal command when opening a PHPStorm project?

查看:302
本文介绍了打开PHPStorm项目时可以自动运行终端命令吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Gulp工作流程,我想在PHPStorm中打开项目时自动启动它.这可能吗?

I've got a Gulp workflow that I'd like to automatically launch upon opening my project in PHPStorm. Is this possible?

推荐答案

目前无法实现.

https://youtrack.jetbrains.com/issue/WEB-11818 -观看此票证和相关票证(星号/票/评论),以获取有关进度的通知.

https://youtrack.jetbrains.com/issue/WEB-11818 -- watch this and related tickets (star/vote/comment) to get notified on progress.

更新:自PhpStorm v10/WebStorm v11开始,此功能现已实现并可用-在Settings/Preferences | Tools | Startup Tasks下查找.

UPDATE: This functionality is now implemented and available since PhpStorm v10 / WebStorm v11 -- look for it under Settings/Preferences | Tools | Startup Tasks.

这使您可以在项目打开时执行任何现有的(或创建新的)运行/调试配置.这包括Gulp/Grunt任务,因为它们可以通过运行/调试配置"功能来调用.

This allows you to execute any existing (or create new) Run/Debug Configurations on project opening. This includes Gulp/Grunt tasks as they can be invoked via Run/Debug Configurations functionality.

这篇关于打开PHPStorm项目时可以自动运行终端命令吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆