Search code examples
pythonpycharmcaret

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?


Solution

  • 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.