Jump the Cursor to Where You Want To Go

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:

    1. Press Ctrl+G, or select Goto > Goto Line, to open the Goto Line palette.
    2. Type in the number to which you want to jump.
    3. 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:

    1. 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.
    2. A list of symbols—functions, methods, selectors, headers, & IDs—will appear.
    3. 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:

    1. Press Command+P (Mac OS X) or Ctrl+P (Windows or Linux) to open the Goto Anything palette.
    2. Press # to see a list of all words in the document.
    3. Start typing to narrow down to the word you want.
    4. When the word is selected, press Enter to jump to the first instance of that word.
    5. To jump to later instances, press Command+G (Mac OS X) or Ctrl+F3 (Windows or Linux)
    6. To edit all instances of the word at the same time:
      1. Press Command+Ctrl+G (Mac OS X) or Alt+F3 (Windows or Linux) to select all instances.
      2. Type to change them.
      3. Press Esc when you’re finished.
    WebSanity Top Secret