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

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


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:


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


I found that Android Studio 3 wasn't accepting blank or 0 value in the attribute as per in Alex's answer.

Try following steps:From menu bar, select File > Settings > Editor > General > Appearanceand uncheck the Show right margin... checkbox.

Removing the right margin in Android Studio