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
Let’s not talk about chicken soup, let’s talk abo...
If you only look at the fraudulent behavior of We...
There is a popular saying in the Douyin e-commerc...
The entrance theory has been mentioned constantly...
Shenzhen High-Quality Tea Tasting Audition (185~73...
Review expert: Ancient Mingdi Lian (He Lin) Zhihu...
Taiwan's celebrity's favorite micro plast...
How much does it cost to attract investment for t...
Recently, the number of COVID-19 positive tests i...
01 Positioning and value of Douyin private domain...
When you find that the sea water at the beach has...
Qitaihe snack app agents are generally divided in...
This article will talk about "How to build I...
□ Don't respect the principle of becoming a g...
The beginning of autumn has passed and the weathe...