Jump to line in Sublime Text

Alexsandra Guerra picture Alexsandra Guerra · Feb 4, 2015 · Viewed 56.2k times · Source

Does anyone know of a shortcut for jumping to a specific line (given a #) in Sublime Text?

Ex: I run code and get an error at line 5765. I want to be able to jump quickly in Sublime Text to line 5765, without scrolling.

Thanks!

Answer

maxtuzz picture maxtuzz · Feb 4, 2015

Windows: Ctrl + G

Mac: Control + G

Linux:Ctrl + G

or

Windows: Ctrl + P + :

Mac: Command + P + :

Linux: Ctrl + P + :

Then type the line number. It will automatically find it for you and if it requires scrolling to get to - it will snap your view to the line number level.

Hope that helps.

Happy coding!