Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

IDEA 4: Key mappings

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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
Mac OS X IntelliJ IDE Chrome
  • 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!
 
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
Mac OS X IntelliJ IDE Chrome
  • 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.
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!