About Android Studio's key mappingAndroid Studio provides different keymaps (i.e. the mapping between shortcut keys and their corresponding operations). You can view the currently used keymap in the " Settings->Keymap " menu. Highlight all identical variables OS X: Command + Shift + F7 This shortcut will highlight all occurrences of the selected characters in the current file. Of course, this shortcut is not just some simple pattern matching, it also understands the scope of the current variable and only highlights the relevant characters. After highlighting, you can use the shortcuts defined at " Edit → Find → Find Next/Previous " to select the highlighted characters you want to operate on. Related Tips:
Jumping between methods and inner classesOS X: Ctrl + ↑ / ↓Windows Or Linux: Alt + ↑ / ↓ This shortcut allows you to easily jump to the method or class in the current file. If you are currently in a method, this shortcut (up) will allow your cursor to jump to the method name. This is very helpful when you are refactoring code or finding where this code is used. Class file structure pop-up windowOS X: Command + F12Windows or Linux: Ctrl + F12 This shortcut key can help you display the method structure of the current class file. You can use this shortcut key to pop up a pop-up window and search for the method name you want. Related Tips:
Method call level pop-up windowOS X: Ctrl + Alt + HWindows Or Linux: Ctrl + Alt + H This shortcut helps you show how the method is called. Defining Quick FindsOS X: Alt + SpaceWindows Or Linux: Ctrl + Shift + i If you want to immediately know the source of a class or method without losing your current coding environment, you can try this shortcut. Collapse or expand code blocksOS X : Alt + + / -Windows Or Linux: Ctrl + Shift + + / - See the picture on the right for the specific effect. Related Tips:
Bookmark to save your code siteDefault TagsOS X: F3Windows Or Linux: F11 Press this shortcut key to label the line where your cursor is currently located. Labels with letters or numbersOS X: Alt + F3Windows Or Linux: Ctrl + F11 Press this shortcut key to label the line where your cursor is currently located, and provide a letter or number label. If you choose a number label, you can jump directly to the corresponding position by pressing ctrl+the corresponding number. Display TagsOS X: Command + F3Windows Or Linux : Shift + F11 Find Android Studio's menu optionsOS X: Command + Shift + AWindows Or Linux: Ctrl + Shift + A You can search for any menu option by typing the menu name, which is useful for operations that are rarely used. Related Tips:
Line-of-code movementOS X: Alt + Shift + ↑ / ↓Windows Or Linux: Alt + Shift + ↑ / ↓ Use this shortcut key to move the code in a row, either up or down. The effect is as shown below. Deleting a rowOS X: Command + BackspaceWindows Or Linux: Ctrl + Y Delete the current line or selected code. |
<<: Mobile email APP Mail Master plays the warmth card to create a warm winter version for users
>>: Get rid of the following bad habits and give your Android phone a new lease of life
[[156876]] "I've tried everything, but t...
Linger Investment Research Diary "Trend Band...
Author: Sun Yafei, PhD in Chemistry, Tsinghua Uni...
The impact of advertising materials on advertisin...
The food short videos shot by the aunt next door ...
Author: Huang Xianghong Duan Yuechu There are man...
Recently, Apple announced information related to ...
"Swordsman" is a costume martial arts T...
What is Marketing ? Marketing is a means of satis...
Last year, I wrote an article titled "How to...
This is a simple mind map of paid community plann...
In just a few minutes, AI successfully replicated...
On February 25, a press conference of the Joint P...
Produced by: Science Popularization China Author:...