Android Studio shortcut key daily (4)

Source: Internet
Author: User
Tags sublime text version control system

Original address: http://www.developerphil.com/android-studio-tips-of-the-day-roundup-4/

33. Analyze data flow to current location

Apple/windows: No corresponding shortcut key, you can choose Analyze->analyze Data Flow to here in the menu

By analyzing the currently selected variable, parameter, or domain variable, this function gives a path map that flows through the current position. This is useful when you are reading an unfamiliar code and want to quickly figure out what changes have been made to a parameter.

This feature is the opposite of "analyzing data flow from here", which gives you a place to terminate a data variable, a domain variable, or a return value.

34, Sublime Text style of multi-line selection

Apple: Ctrl+g windows:alt+j

This is a nice feature. This allows you to select multiple identical strings at once and add a cursor where each string appears. In other words, you can enter the same content in multiple places at once. (Note: To select a string before you can OH)

35. Column Selection

Apple: Cmd+shift+8 Windows:shift+alt+insert

You can also: ALT + mouse drag

This feature allows you to select multiple lines at once for editing, also known as Block selection. Simply put, when you choose down, the end of the line will not be selected in the selection. Only the rectangular area you select is selected as the result of the selection, and the last cursor in the rectangular area lets you edit it.

36. Suffix complement

Shortcut key: None

This feature may not be very well understood literally. In short, this feature is to use some structural code to wrap the currently selected statement, to some extent, you can save a lot of time. For example, if you want to traverse a list, you can automatically generate a for structure that iterates through the list by simply typing "mylist.for" and then pressing TAB completion.

Enter "." Directly after a statement You can get a complete list of the completion options you need in this table.

Here are the most common actions I have:

(1). for (Generate a for loop structure)

(2). Format (Wrap a string with String.Format ())

(3). CAST (wrapping a statement with a forced type conversion)

37. Compare with Clipboard contents

Shortcut key: Right-click on the selected content and select "Compare with Clipboard"

This feature compares the currently selected content with the contents of the Clipboard and shows the difference between the two.

38. Operation of the termination process

Apple: Cmd+f2 windows:ctrl+f2

This feature terminates a process that is currently running. If more than one process is currently running, a list is displayed for you to select. Very helpful for terminating program build or debugging.

39, show the program execution point

Shortcut key: ALT+F10

It is a simple function of placing the cursor where the debugger is currently executing. Sometimes debugging may be appropriate to leave the location you are currently debugging, and the file may lose its debug location after the jump. So this function will be able to glow heat.

40. Show VCs action list box

Apple: Ctrl + V windows:alt+ ' (the key below the ESC key on the keyboard)

This shortcut will give you a list of commonly used versioning actions. If your project does not use a version control system, a local modification history maintained by Android Studio is displayed.

41. Branch comparison (GIT)

Shortcut keys: Menu selection Vcs->git->compare with Branch. (For Git)

Assuming that your project is versioned with git, you can compare the current file or folder between different branches. This makes it very clear how much difference the current branch and main branch are.

Android Studio shortcut key daily (4)

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.