IDE viewing modes

Last modified: 01 September 2023

PyCharm lets you switch between several viewing modes for different usage styles and scenarios. For example, when you need to focus on the code or present to an audience.

By default, the editor text in the Distraction-free and Zen viewing modes is centered vertically and the text column width corresponds to the Hard wrap at option on the Editor | Code Style page of the IDE settings . This means that if your code will be centered when formatted properly, but if there are long unwrapped lines, the text might go beyond the viewport while there is a large margin on the left. In such cases, you may want to decrease the left margin using the Left margin in distraction free mode option on the Advanced Settings page of the IDE settings .