The previous version of the settings change relatively large, I only say 1.3.1, the other version of their own fine-tuning, settings >>editor>>code style right of the value of straight margin (columns) is the width of the guide line, If you don't have a reference line in your interface, then you have to put Settings>>editor >>general >>apppearance on the right Style options) tick.
There are two kinds of word-wrapping, one is line-wrapping, the other is the code is formatted when the line wraps, the line is to go beyond the code guide will be moved to the next line, wrap is settings >> Editor>>code style to the right of wrapping when Typing reaches right margin tick on (not recommended).
When the code is formatted, WRAP: Settings >>editor>>code Style>>java to the right of wrapping and Braces>>keep when reformatting >> ensure right margin was not exceeded tick, each time Ctrl+alt+l format code, will be changed line (recommended), note: If it is Ubuntu system, Ctrl+alt+l is the lock screen, You can change Ubuntu's lock screen shortcut to something else, such as Win+l
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Stuio Modify code guides and smart line breaks