Pycharm (Mac) by selecting a line

Three ways I know:

  • triple click anywhere on the line

  • ditch line number

  • cmd + left move the cursor to the beginning of the line, then cmd + shift + right

But 1 and 2 are associated with a mouse click, 3 - combos. Any real shortcut for single row selection?

+6
source share
3 answers

You can assign a keyboard shortcut for this action: Select a line in Caret .

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

+4
source

I will give the opportunity + He does not complete the task immediately, but in a few clicks it can be very convenient.

+3
source

Since there are already keyboard maps for moving a line up / down, duplicating a line and deleting a line, the only goal I would choose for the entire line is to copy too much space to move up / down. Thus, I use the copy command (available by default with Command-C using PyCharm CE 2017.3 on Mac), which has nice behavior when automatically selecting and copying the entire line where the cursor is if there is currently no text selected.

0
source

Source: https://habr.com/ru/post/949335/


All Articles