Comment shortcut Android Studio

后端 未结 24 2845
野趣味
野趣味 2020-12-22 19:55

I\'m searching for useful Android Studio keyboard shortcut for commenting code, as in Sublime Text or Eclipse.

When I press either cmd+/ or

24条回答
  •  再見小時候
    2020-12-22 19:59

    Reviewing and Changing Keyboard Shortcuts in Android Studio

    Keyboard shortcuts can be configured (and reviewed) via the Settings dialog, accessible via File -> Settings.

    Once this dialog appears, to review (and/or add) a shortcut, do the following:

    1. Select Keymap in the list on the left. Note that there is a "Keymaps" option, and depending on the original selection, shortcuts assigned to a given feature differ based on the Keymap.

    2. Type "comment" or text corresponding to the feature for which the keyboard shortcut is to be reviewed/assigned. Each match has a line entry in the list below, and keyboard shortcuts are shown right-justified along with the feature. For example, both CTRL+ALT+SLASH and CTRL+K, CTRL+C are the two assignments for creating a line comment.

    To modify a shortcut:

    1. Select the resultant line corresponding to the feature for which the keyboard shortcut is to be reviewed/assigned
    2. Right-click, and select the desired Add or Remove option.

提交回复
热议问题