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
Why is YouTube the fastest growing company in Sil...
In 2018, the entire mobile Internet entered the s...
In today's life, mobile phones are not only a...
The heart is one of the most important organs in ...
[[145652]] Android Lollipop is obviously loved by...
On a hot summer day, opening a bottle of ice-cold...
Samsung Galaxy S8 can be said to be the most antic...
The arrival of mini programs , a new portal on th...
With the development of the Internet era, everyon...
Over the past year or so, the rising star-like ex...
What are the common characteristics of content th...
Good advertising should achieve "integration...
Having worked in operations for several years, I ...
Drinking water is a very common thing, but some p...
China and the Gulf Cooperation Council countries ...