Pycharm (Mac) selecting a line

I will give a chance to + It does not do the job at once, but in few clicks it can be very handy.


You can assign a keyboard shortcut to this action: Select Line at Caret.

Also note that Copy/Cut actions will work without any selection and will affect the whole line as if it was selected.


Since there are already keymaps for moving a line up/down, duplicating a line, and deleting a line, the only other purpose I would select an entire line is for copying to a location too far for moving up/down. So, I use the copy command (accessibly by default with Command-C using PyCharm CE 2017.3 on mac), which has the nice behavior of automatically selecting and copy the entire line where the cursor is, as long as no text is currently selected.

Tags:

Pycharm