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

2

10

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?

Cervine answered 19/2, 2016 at 4:13 Comment(0)
S
15

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.

Squishy answered 19/2, 2016 at 4:28 Comment(0)
S
0

If you are confuse what is end and home in your keyboard than,

End : right arrow

Home : left arrow

Use shortcuts to move fast your cursor use,

Ctrl + End : to move right

Ctrl + Home : to move left

Stavro answered 21/9, 2023 at 15:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.