eclipse是shift+ctrl+F Android studio需要自己打开File==>Setting==>keymap,在右上角搜索Reformat 因为我用的是Vistual Studio的设置,所以直接是Alt+F8即可