Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove the right hand margin line in Android Studio (Intellij)?

I want to remove the right hand margin line in Android Studio/IntelliJ. I have pointed out the line in question in the image below.

I searched Android studio settings and search Google many times.. but I couldn't find anything.

How do I remove that line?

enter image description here

like image 933
HWANG Avatar asked Nov 13 '14 02:11

HWANG


People also ask

Why does Android studio have lines?

That line historically represents the margin of A4 paper, which 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.


2 Answers

Easy solution to this :)

Go to File, then Other Settings, then Default Settings. Choose Code Style from the list on the Left, then General. Change the Right Margin attribute to be 0. This will remove the line.

Hope this helps. Here's a picture:

like image 72
Alex K Avatar answered Sep 25 '22 07:09

Alex K


IntelliJ IDEA 2017

  • Ctrl + Shift + A
  • type "Appearance: Show right"
  • switch the toggle to OFF using Enter or mouse left click.

    Appearance: Show right margin

like image 35
ROMANIA_engineer Avatar answered Sep 25 '22 07:09

ROMANIA_engineer