Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move caret to start or middle of a line in PyCharm

If you hit the End key on your keyboard in PyCharm, the caret moves to the end of the line. Is there any key for going to the start or middle of a line in PyCharm?

If you press Ctrl+G, it asks you to enter a line number, but is the any other to go to the start or end of the line?

like image 957
python Avatar asked Feb 19 '16 04:02

python


People also ask

How do I change the selection in PyCharm?

Press Alt+Shift+Insert . From the main menu, choose Edit | Column Selection Mode. From the context menu of the editor, choose Column Selection Mode.

How do I move a lineup in Visual Studio?

This keyboard shortcut is new in Visual Studio 2013. If you put the cursor on a line of code and use the Alt+Up Arrow keys, the line of code you've selected moves up.


1 Answers

From PyCharm's Keyboard Shortcuts and Mouse Reference:

  • End: Move the caret to the end of line.
  • Home: Move the caret to the beginning of line.
  • Ctrl+Right: Move the caret to the next word.
  • Ctrl+Left: Move the caret to the previous word.

I cannot find any reference to an Action that moves the caret to the middle of a line, unfortunately.

like image 142
mech Avatar answered Oct 11 '22 23:10

mech