Take the 2-minute tour ×  Any one have idea how can we correct
indentaion in IntelliJ (Not Manually)  like in eclipse we just
select the code > right click >source>correct indentation  is
there's any method for the same in IntelliJ   share|improve this
question Looking through the various menus, perhaps? –  skaffman
Jan 28 '12 at 10:28 add comment  2 Answers  up vote 13 down vote
accepted  Code | Reformat Code... for the whole file or Code |
Auto-Indent Lines for the current line or selection.
share|improve this answer add comment  Ok ,i found it  Just
select the code and Ctrl >Alt>L  share|improve this answer
consider accepting existing answer instead of answering yourself
with exactly the same (Reformat Code... is Ctrl+Alt+L in the
default Windows keymap). –  CrazyCoder Jan 28 '12 at 10:53 In
Linux you will lock the screen. WTH this shortcurt is in the
linux version? hahah –  androider Apr 16 at 17:36 It is the
same... Ctrl-Alt-L (I'm using Android Studio)... which is a
small shame among other shames. Hope