• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IDEA 4: Key mappings

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind, I had to change the Filter Targets in the properties. Works great now!
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg,
Please share. I didn't realize you could map shortcut keys to tasks in the build file.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very cool. Thanks, Gregg.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic