Android Studio中的垂直线 [英] Vertical Line in Android Studio

查看:186
本文介绍了Android Studio中的垂直线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道为什么,但是有时在Android Studio编辑器中,它会显示垂直线,如下面的屏幕截图所示.

I don't know why but sometime in Android Studio Editor, it shows vertical line as shown in screenshot below.

不了解其他编辑器,但它发生在Android Studio中.

Don't know about other editor but it happens in Android Studio.

那为什么要显示它以及如何隐藏它?

推荐答案

该行历来代表A4纸的页边距,仅在需要打印代码时才有用. 老派说,您应该将代码保留在该范围内,以确保大量可移植性.

That line historically represents the margin of A4 paper, that is useful only if you need to print the code. Old school says that you should keep your code inside that margin, to guarantee much portability.

但是..在现实生活中,今天对我来说已经毫无意义了!因为我们始终使用高级编辑器,更大的显示器,而且我不需要打印任何一行代码..

But.. nowadays in the real life it makes no sense to me! Because we always use advanced editors, bigger displays, and I never needed to print any single line of code..

因此,如果您想这样做:

So, if you want do it:

编辑器->一般->外观->显示精装指南

Editor -> General -> Appearance -> Show hard wrap guide

旧版本

编辑器->一般->外观->显示右边距

Editor -> General -> Appearance -> Show right margin

编辑器->外观->显示右边距

Editor -> Appearance -> Show right margin

对于Mac

要删除行,请转到:-首选项->编辑器->一般->外观->显示包装纸和视觉指南.取消选中即可删除.

To remove line go to:- Preference-> Editor -> General -> Appearance -> Show hard wrap and visual guides. Uncheck it to remove.

这篇关于Android Studio中的垂直线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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