aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes IDEA 4:  Key mappings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "IDEA 4:  Key mappings" Watch "IDEA 4:  Key mappings" New topic
Author

IDEA 4: Key mappings

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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...


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IDEA 4: Key mappings