Reputation: 16769
I would like to centre my code in the Android Studio's/IntelliJ's editor, like as it is done in the Distraction Free Mode.
Right now, it is always aligned on the left side of the editor, but I want to have it in the centre of the window. I could not find any option for this in the settings. Is this possible without entering the Distraction Free Mode?
Upvotes: 46
Views: 12611
Reputation: 1293
You can also activate this option through the registry:
shift shift
to search everywhereregistry
and select "Registry..."distraction
to filter the listVoilà, no restart needed.
Upvotes: 35
Reputation: 402433
Add -Deditor.distraction.free.mode=true
in Help
| Edit Custom VM Options and restart the IDE. This will center the editor without the other features of the distraction free mode (like hidden tool windows).
Upvotes: 109