23
Multiple Cursors in Sublime Text fallroot @ FRENDS #toolcon2014

Multiple Cursors in Sublime Text

  • Upload
    -

  • View
    1.813

  • Download
    12

Embed Size (px)

DESCRIPTION

How to use multiple cursors and selections in Sublime Text

Citation preview

  • Multiple Cursors in Sublime Text

    fallroot @ FRENDS

    #toolcon2014

  • fallroot

  • Symbols

    Command Delete Control Escape Option / Alt Page Up Shift Page Down Tab Space Return

  • Beginning of the document

    End of the document

    Beginning of the current line

    End of the current linehttp://support.apple.com/kb/ht1343

    http://support.apple.com/kb/ht1343
  • Sublime Text

  • Beginning of the previous word

    End of the next word

    http://support.apple.com/kb/ht1343

    http://support.apple.com/kb/ht1343
  • Word Separators Preferences > Settings - Default

    "word_separators"

    ./\()'-:,.;~!@#$%^&*|+=[]{}`~?

    Differ from OS X slightly

  • Word Separators

    var FRENDS = FRont-End Developers;

    var FRENDS = FRont-End Developers;

    var FRENDS = FRont-End Developers;

  • Word Separators Non Case Sensitive

    Underline not included

  • Subword

    TitleCase, camelCase and under_line

    TitleCase, camelCase and under_line

  • Notice

  • Selection

    All A Scope

    Line L Brackets M

    Word D Indentation J

    Paragraph Tag A

  • D Expand Selection to Word

    Quick Add Next

  • DDD

    D

    function getPrice(product) {

    if (!product.price) {

    product.price = 0;

    }

    return product.price;

    }

  • DD

    D

    C

    Java

    JavaScript

    Python

    Ruby

    C

    Java

    JavaScript

    Python

    Ruby

  • Quick Add & Skip

    Quick Add Next D

    Quick Skip Next K D

  • function createThumbnail(comic) {

    var img = document.createElement('img');

    var url = 'http://cdn.lezhin.com/comic';

    img.src = url + comic.comicId;

    document.body.appendChild(img);

    }

    D

    DKD

  • Soft Undo & Redo

    Soft Undo U

    Soft Redo U

  • Column Selection

    Drag

    Click

    and

  • Notice

  • Practice Editing CSV

    Instant Editing

    Lines to Tag

    Sort

    CSS / SQL

    Invert Selection

    Extract

  • References http://www.sublimetext.com/docs/3/

    http://sublime-text-unofficial-documentation.readthedocs.org/

    http://pragprog.com/book/textmate/textmate

    http://www.sublimetext.com/docs/3/http://sublime-text-unofficial-documentation.readthedocs.org/http://pragprog.com/book/textmate/textmate
  • .