I found out how to map shortcut keys to my ANT build files tasks. Problem is, only 1 of my tasks is showing up as available. And when I go to Build -> Ant I am only showing the one task, deploy. If I need to show my build.xml I can, but does anyone know off hand why all my tasks are showing up? They are in the ANT view but deploy is bold and the other tasks are gray. I have no problem executing any of the tasks from within IDEA. Strange...
Ok, the first thing you need to do is go to your Ant Build view and right click on a target and choose Properties. Then click on the Filter Targets tab and select all the targets you want available for shortcuts. Close that window. Go to File->Settings->IDE->Keymap At the top, Default is probably selected. You need to click the Copy Button and name it whatever you want. In the middle Window you will see a Tree like structure and one of the nodes says Ant Targets. Expand that and you should see your project. Expand that and you will see all your targets. Select a target and at the bottom left hit the Add Keyboard Shortcut button. It should be pretty intuitive from there. I assigned ALT-D for my deploy and ALT-U for my undeploy. It will tell you if there are conflicts with your key strokes.
posted 15 years ago
Very cool. Thanks, Gregg.
I knew I would regret that burrito. But this tiny ad has never caused regrets: