Android Studio/IntelliJ IDEA编辑器中的中心代码 [英] Centre code in Android Studio/IntelliJ IDEA editor

查看:84
本文介绍了Android Studio/IntelliJ IDEA编辑器中的中心代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将代码集中在Android Studio/Intellij的编辑器中,就像在免干扰模式下一样. 现在,如果它始终在编辑器的左侧对齐,但我想将其放在窗口的中央.我在设置中找不到任何选项.是否可以进入无干扰模式?

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 if 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?

推荐答案

Help中添加-Deditor.distraction.free.mode=true | 编辑自定义VM选项,然后重新启动IDE.这将使编辑器居中,而不会产生干扰分散模式的其他功能(例如隐藏的工具窗口).

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).

这篇关于Android Studio/IntelliJ IDEA编辑器中的中心代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆