command is the most basic way to navigate to the line with the specified number.
- On the main menu, choose Ctrl+GCtrl+GCtrl+GCtrl+GAlt+GCtrl+GCtrl+GCtrl+L⌘ L⌘ G⌘ L. , or press
- In the Go To Line dialog box that appears, PyCharm shows the current line and offset delimited by a colon. Type the target line number and, optionally, an offset, and then click OK.
The current caret position (line number and offset) is displayed in the Status Bar. You can click it to open the Go To Line dialog box.