Android Studio shortcuts like Eclipse

前端 未结 20 1134
后悔当初
后悔当初 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

    Important Android Studio Shortcuts You Need the Most


    Navigation Shortcuts

    • Go to class : CTRL + N

    • Go to file : CTRL + SHIFT + N

    • Navigate open tabs : ALT + Left-Arrow; ALT + Right-Arrow

    • Lookup recent files : CTRL + E

    • Go to line : CTRL + G

    • Navigate to last edit location : CTRL + SHIFT + BACKSPACE

    • Go to declaration : CTRL + B

    • Go to implementation : CTRL + ALT + B

    • Go to source : F4

    • Go to super Class : CTRL + U

    • Show Call hierarchy : CTRL + ALT + H

    • Search in path/project : CTRL + SHIFT + F


    Programming Shortcuts

    • Reformat code : CTRL + ALT + L

    • Optimize imports : CTRL + ALT + O

    • Code Completion : CTRL + SPACE

    • Issue quick fix : ALT + ENTER

    • Surround code block : CTRL + ALT + T

    • Rename and refactor : SHIFT + F6

    • Line Comment or Uncomment : CTRL + /

    • Block Comment or Uncomment : CTRL + SHIFT + /

    • Go to previous/next method : ALT + UP/DOWN

    • Show parameters for method : CTRL + P

    • Quick documentation lookup : CTRL + Q


    General Shortcuts

    • Delete line : CTRL + Y

    • Safe Delete : ALT + DELETE

    • Close Active Tab : CTRL + F4

    • Build and run : SHIFT + F10

    • Build : CTRL + F9

    • All purpose (Meta)Shortcut : CTRL + SHIFT + A

提交回复
热议问题