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
In life, we often hear an inspiring saying, "...
Earlier I read an article about Microsoft's a...
NetEase Auto reported on October 26 that on Octob...
Apple's iPhone 6 has passed a key regulatory ...
The Rio Olympics has been open for two days, and ...
There is a saying that is often circulated on the...
Recently, nine trapped Chinese gorals, a national...
In fact, I really hate topics like entrepreneursh...
Before oxygen appeared on Earth, the environment ...
Summer vacation is the season when a large number...
Compiled by: Gong Zixin Our 24 hours a day It con...
1. The quality of Baidu’s bidding account. The qu...
Introduction to the resources of the best sales p...
[[419042]] What is For the client, permission pri...