On this page…
When you’re creating something in a text editor—code, an essay, a blog post, or even fiction—you’ll often find yourself wanting to jump your cursor to another location in your text. Sublime Text offers you several ways to do just that.
Jump to a specific line number
To jump to a specific line, follow these steps:
- Press Ctrl+G, or select Goto > Goto Line, to open the Goto Line palette.
- Type in the number to which you want to jump.
- Press Enter, & your cursor will now be on that line.
Jump to a function, method, selector, header, or ID
Even more powerfully than moving your cursor to a specific line, you can easily jump to a particular function, method, selector (CSS), header (HTML), or ID (HTML). To do so, follow these steps:
- Press Command+R (Mac OS X) or Ctlr+R (Windows or Linux)[^alternate-command-p-plus-at], or select Goto > Goto Symbol, to open the Goto Symbol palette.
- A list of symbols—functions, methods, selectors, headers, & IDs—will appear.
- Either type the name of the symbol you’d like to jump to, or use your arrow keys or mouse to select the symbol to which you’d like to jump.
Jump to a word
Have a certain word in mind? Want to change every instance of that word to a different one? No problem.
To jump to a particular word, follow these steps:
- Press Command+P (Mac OS X) or Ctrl+P (Windows or Linux) to open the Goto Anything palette.
- Press # to see a list of all words in the document.
- Start typing to narrow down to the word you want.
- When the word is selected, press Enter to jump to the first instance of that word.
- To jump to later instances, press Command+G (Mac OS X) or Ctrl+F3 (Windows or Linux)
- To edit all instances of the word at the same time:
- Press Command+Ctrl+G (Mac OS X) or Alt+F3 (Windows or Linux) to select all instances.
- Type to change them.
- Press Esc when you’re finished.