Shift + Home / End selects all the text from the current caret position to the beginning or end of the current line. (Cmd + Shift + Left / Right Arrow on Mac). You can also triple click on the desired line to fully select it.
If you want to copy / cut an entire line, then Ctrl + C / Ctrl + X after placing the caret on the desired line will do.
They have more useful shortcuts here .
source share