My fav Sublime Text 2 shortcuts

Sublime Text

Hi. These are the most common keyboard shortcuts that i use in Sublime Text 2 (WIN):

Ctrl + Shift + P – Commands list

Ctrl+P – Go to anything. I just hit Ctrl+P and type parts of files I want to open – huge time saver.

Ctrl + Space – Auto completion.

Alt + 1, 2, 3, 4, … – Switch between open files’ tabs. Not to waste your time grabbing a mouse, and clicking on a tab.

Ctrl + PgUp/PgDn – Cicles throught the open files

Ctrl + click somewhere in your code – multiplies your caret, so you can simultaneously enter, delete, overwrite your code. Hitting Esc will exit this function.

Alt + Shift + W – Wrap selection with a tag. Select text, hit shortcut, enter tag’s name, done.

Ctrl + Shift + T – Open last closed file

Alt + Shift + 1,2,3,4,5… – Splits the screen into multiple views for multiple files

Ctrl K ,  Ctrl B – Opens/Closes the file explorer

Ctrl + G – Goto line

Ctrl + H – Replace

Ctrl + F – Find

Shift + Ctrl + D – Duplicates the current line, or the selection, if something is selected.

Ctrl + D – If no thing is selected, (can be previous selected)  the current word closest to the caret is selected. Keep hitting this shortcut will select near by strings that are a match, and can be used for multiple editing.

Hope helps someone ~:o)

3 comments

  1. Here are the corresponding key combinations on the Mac for the Windows one you list above.
    Ctrl + Shift + P (Win) / Cmd + Shift + P (Mac)
    Ctrl+P (Win) / Cmd + P (Mac)
    Ctrl + Space (Win) / (Cannot find equivalent on Mac)
    Alt + 1, 2, 3, 4, (Win) / Cmd + 1, 2, 3, 4, (Mac)
    Ctrl + PgUp or PgDn (Win) / Cmd + Shift + [ or ] (Mac)
    Ctrl + click (Win) / Cmd + click (Mac)
    Alt + Shift + W (Win) / Ctrl + Shift + W (Mac)
    Ctrl + Shift + T (Win) / (Cannot find equivalent on Mac)
    Alt + Shift + 1,2,3,4,5… (Win) / Cmd + Alt + 1,2,3,4,5… (Mac)
    Ctrl K or Ctrl B (Win) / Cmd K + Cmd B (Mac)
    Ctrl + G (Win) / Ctrl + G (Mac)
    Ctrl + H (Win) / Alt + Cmd + F (Mac)
    Ctrl + F (Win) / Cmd + F (Mac)
    Shift + Ctrl + D (Win) / Cmd + Shift + D (Mac)
    Ctrl + D (Win) / (Cannot find equivalent on Mac)

Leave a Reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">