Does IntelliJ IDEA have a `Ctrl` + `K`, `Ctrl` + `D` equivalent?

11,342

Solution 1

The format code shortcut in IntelliJ IDEA is CtrlAltL.

Here's a list of keyboard shortcuts in IntelliJ IDEA and Eclipse.

Also note that you can configure shortcuts yourself.

Solution 2

You can find all the keyboard shortcuts in [Help Menu] -> [Default Keymap Reference]. It is an excellent PDF that you can print and keep next to your keyboard.

Solution 3

Yes, hit CTRL+ALT+L and follow the options.

Share:
11,342

Related videos on Youtube

JMK
Author by

JMK

Software developer currently living in Belfast, jack of a couple of trades, master of none!

Updated on September 26, 2022

Comments

  • JMK
    JMK over 1 year

    I am used to Visual Studio's Ctrl+K, Ctrl+D shortcut to quickly tidy up my C# code, does an equivalent exist in Intellij IDEA for Java?