Run command line from toolbar

Is it possible to setup a button on your toolbar that allows you to run a command? For example, I want to run the following "grunt.cmd app-dev" as if I opened the command line typed in the command and hit enter. I'd much rather do this within the IDE than keep switching to a console window to run that command. I've searched the docs, but can't figure out how to get this done.

Thanks for any help.

1

Hi Brian,

Since I'm not 100% sure on how exactly you want to run such commend (you've mentioned "console" and "command line" -- do you mean separate console (cmd.exe) .. or built-in "Tools | Run Command...") I would suggest checking out "External Tools" functionality (Settings | External Tools) -- once you have such entry created you can assign custom shortcut to it (Settings | Keymap | Extenal Tools) .. or put it on main toolbar as icon.

3

请先登录再写评论。