| Author |
IDEA 4: Key mappings
|
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15229
|
|
|
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...
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15229
|
|
|
Nevermind, I had to change the Filter Targets in the properties. Works great now!
|
 |
Matthew Phillips
Ranch Hand
Joined: Mar 09, 2001
Posts: 2676
|
|
Gregg, Please share. I didn't realize you could map shortcut keys to tasks in the build file.
|
Matthew Phillips
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15229
|
|
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.
|
 |
Matthew Phillips
Ranch Hand
Joined: Mar 09, 2001
Posts: 2676
|
|
|
Very cool. Thanks, Gregg.
|
 |
 |
|
|
subject: IDEA 4: Key mappings
|
|
|