Android Studio shortcuts like Eclipse

前端 未结 20 1129
后悔当初
后悔当初 2020-12-04 05:19

I am new to Android Studio and want to know about shortcuts. In Eclipse we use shift-ctrl-O for importing. In Android Studio we use alt-enter. My ques

相关标签:
20条回答
  • 2020-12-04 06:22

    in androidstudio 3.0(>=) in menu bar go to help-> keymap Reference It will give all the shortcuts .. link

    0 讨论(0)
  • 2020-12-04 06:24

    If you use Android Studio with Mac OS X these are some shortcuts:

    - Compile java sources SHF+CMD+F9

    - Build the project CMD+F9

    - Run the current configuration CTR+R

    - Run in debugger CTR+D

    - Open project properties CMD++;

    - Open Android Studio preferences CMD++,

    - Find any command SHF+CMD+A

    - Auto-format code OPT+CMD+L

    - Delete line CMD+DELETE or CMD+Backspace

    - Duplicate line/selection CMD+D

    - Copy line CMD+C (with nothing selected)

    - Select next occurance(s) CTR+G

    Scope based selection

    • Select next higher scope Option+UP

    • Select next lower scope Option+DOWN

    enter image description here

    Navigating the code

    - Open class CMD+O

    - Open file SHF+CMD+O

    - Navigate back to last position CMD+[

    - Navigate forward to previous position CMD+]

    - Switch to recently used files CRT+TAB

    Intention Actions

    • If/Switch actions Option+RETURN

    enter image description here

    Create method CMD+N

    or

    enter image description here

    Loop an array of ints

    enter image description here

    • Generate Logs usin logd, loge, logi, logt, logm and logr

    enter image description here

    - Project quick fix ALT+ENTER

    - Show docs for selected API F1

    - Jump to source CMD+down-arrow

    Most of them I found on this really good article and Android Studio Tips and Tricks

    0 讨论(0)
提交回复
热议问题