Android Studio Tips for using: Extracting method Code Snippets

Source: Internet
Author: User

Today to introduce you to a very useful studio Tips, sometimes we write too much code inside a method, and then want to extract some of the code and put it in a separate method, usually we do copy and paste, and now I will teach you a very concise method, Let's take a look at the GIF demo:

How is it convenient? The operation method is very simple, just need to select some code, and then the operation of shortcut CMD + Option + m on OK, Windows is Ctrl + Alt + M, very simple and convenient to share a small trick to everyone.

Android Studio Tips for using: Extracting method Code Snippets

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.