Search code examples
android-studio

Shortcut to select a line of code in Android Studio


Is there a short cut to select one line of code in android studio?


Solution

  • Shift+Home or Shift+End will select all the text from the current caret position to the beginning or end of the current line. (Cmd+Shift+Left or Cmd+Shift+Right on mac). You can also triple-click on the required line to select it wholly. This can also be achieved by clicking on the line number.

    If you want to copy/cut an entire line then Ctrl+C or Ctrl+X after placing the caret on the required line will do.

    They have more useful shortcuts here.