I've tried googling, and so far the closest answer is this one: Android Studio is driving me nuts
However, it's not really a keyboard shortcut, and besides, the "Project Pane" isn't always visible. (If anyone knows how to make it permanently visible, please tell me.)
What I do is search "Project" on the quick search bar, click on it to make it appear, and then switch to Package Explorer.
After opening the file we have to simply press the shortcut key as Ctrl+Alt+L to reformat the code in your file. With this key, the code in your file will be rearranged according to the code standards.
It is simple and default: ( CTRL + Z ) This is for undo. Just press ( CTRL + SHIFT + Z ) for redo.
Alt+1 toggles the pane in question - not sure though if there is a short cut to toggle between project and packages there
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With