Vertical Line in Android Studio

后端 未结 2 899
眼角桃花
眼角桃花 2020-12-29 19:49

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

Don\'t know about other editor but it

相关标签:
2条回答
  • 2020-12-29 20:17

    It is as follows in the newer version of Android Studio:

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

    0 讨论(0)
  • 2020-12-29 20:28

    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:

    Newer versions

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

    Older versions

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

    or

    Editor -> Appearance -> Show right margin

    For Mac

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

    0 讨论(0)
提交回复
热议问题