user9201277
user9201277

Reputation:

How I got IntelliJ IDEA code Center Aligned?

The code stays in center like Distraction Free Mode any idea where this setting can be found can't seem to find it again?

enter image description here

Upvotes: 4

Views: 4106

Answers (3)

Mahmoud
Mahmoud

Reputation: 11431

Viewing mode Description
Full Screen IntelliJ IDEA expands the main window to occupy the entire screen. On macOS, all operating system controls are hidden, but you can access the main menu if you hover over the top of the screen.
Distraction-free The editor occupies the entire main window with the source code centered. All other elements of the UI are hidden (tool windows, toolbars, and editor tabs) to help you focus on the source code of the current file. You can still use shortcuts to open tool windows, navigate, and perform other actions.
Presentation IntelliJ IDEA expands the editor to occupy the entire screen and increases the font size to make it easier for your audience to see what you are doing. Other elements of the UI are hidden, but you can bring them up with corresponding shortcuts or using the main menu if you hover over the top of the screen.
Zen IntelliJ IDEA combines the Full Screen and Distraction-free modes, so the main window expands leaving only the editor with the source code for you to focus on programming.

IDE viewing modes

ref: IDE viewing modes

Upvotes: 0

Hreinn Juliusson
Hreinn Juliusson

Reputation: 41

There is a fix for this now:

IntelliJ IDEA now offers a setting under Settings > Advanced Settings > Left margin in distraction free mode. Set it to 0 to achieve the desired result.

See: https://youtrack.jetbrains.com/issue/IDEA-134555/Distraction-free-mode-the-left-margin-is-too-wide#focus=Comments-27-6085156.0-0

Upvotes: 4

user9201277
user9201277

Reputation:

Solved

The issue was that Distraction Free Mode was enabled and then at the same time I enabled the option in Settings > Appearance > Appearance & Behavior toggled Show tool window bars which actually made them visible in Distraction Free Mode but disabled them in Normal mode.

What I learned from this?

So there are two modes and they can be both managed separately.

Upvotes: 1

Related Questions