Android Stuio Modify code guides and smart line breaks

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.