8

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?

3 Answers 3

18

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.

0
1

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.

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.