Key combination for updating Gradle project in IntelliJ IDEA

There is an icon for updating the Gradle project, which is very useful if automatic import is disabled:

When I hovered over it, the status bar says Force refresh all linked Gradle projects .

However, I cannot find a way to assign shortcuts to this button, nor can I see it in the CTRL SHIFT A menu. Is there a way to invoke this update using only the keyboard?

I am using IDEA 2016.3 EAP.

+6
source share
2 answers

You can use "Update external project" (for currently selected) or "Update all external projects". These actions are available in the search actions menu ( Ctrl Shift A ), and shortcuts can also be assigned in the keyboard settings, since they are not assigned by default.

Please note that the menu item when you right-click on the Gradle project in the tool menu is also indicated as “update external project”.

+4
source

There is no way to assign a shortcut to update only gradle projects.

However, there is the “Update all external projects” action, which will also cause the gradle project to be updated.

You can set the shortcut to

Settings → Keymap → Update All External Projects → Right Click → Add Shortcut Keys

+1
source

All Articles