You can associate a Gradle task with a keyboard shortcut and execute commonly-used tasks with a single key-stroke. In a Gradle project, its tasks appear under the Gradle node in the Keymap dialog.
- In the Gradle Projects tool window, right-click the desired task.
- On the context menu, choose . Keymap dialog appears.
- Configure keymap, as described in the section Configuring Keyboard Shortcuts.