I'd like to display right margin in Distraction Free Mode. Is it possible? Can't find any options for DFM in settings.
Right margin is the vertical line displayed in a tab with source code. It shows where the column limit is.
Go to View | Appearance and select Enter <viewing mode> or Exit <viewing mode>.
Alternatively you can use Find Actions ⌘⇧A (macOS), or Ctrl+Shift+A (Windows/Linux) and type in zen mode to enter or exit Zen Mode.
If you want to get rid of every part of the IDE except your code, you can combine the full screen and distraction-free modes by entering the Zen mode: Ctrl+` | View Mode | Enter Zen Mode. To exit the modes, hit Ctrl+` and navigate to View Mode | Exit Distraction Free (or Zen) Mode.
Go to View | Quick Switch Scheme (or press Ctrl+` ). In the Switch popup, select View Mode and then select Enter <viewing mode> or Exit <viewing mode>.
Open the settings and navigate to Editor > General > Appearance and tick "Show hard wrap guide (configured in Code Style Options)".
Alternatively bring up the Find Action search with Ctrl+Shift+A (by default), search for "Show right margin" and hit enter to toggle the setting.
The trick is to change it with distraction free mode enabled.
EDIT: In versions of IntellJ before 2017.3, the menu option was called "Show right margin".
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