• SUBLIME TEXT > raccourcis

      Multiple Selection with the Keyboard

      Adding a Line

      To add the line above or below to the selection, use:

      • Windows/Linux: Ctrl+Alt+ and Ctrl+Alt+
      • Mac: ++ and ++

      If you go too far, use Undo Selection to step backwards:

      • Windows/Linux: Ctrl+U
      • Mac: +U

      Splitting the Selection into Lines

      Select a block of lines, and then split it into many selections, one per line, using:Ctrl+Shift+L

      Sélectionner plusieurs occurrences d’une variable

      Ctrl+D, puis, CTRL+D plusieurs fois pour chaque occurrence.

      Again, if you go too far, use Undo Selection to step backwards: Ctrl+U

      Individual occurrences can be skipped via Quick Skip Next, which is bound to: Ctrl+K, Ctrl+D

      Find All

      To add all occurrences of the current word to the selection, use Find All: Alt+F3

      Single Selection

      To go from multiple selections to a single selection, press Esc.

      Open/Goto

      CTRL+T: go to file
      CTRL+CTRL+p: go to project
      CTRL+r: go to methods
      CTRL+shift+p: command prompt
      CTRL+g: go to line
      CTRL+`: Python console

      Editing

      CTRL+L: select line (repeat select next lines)
      CTRL+D: select word (repeat select others occurrences in context for multiple editing)
      CTRL+SHIFT+m: select content into brackets
      CTRL+shift+enter: insert line before
      CTRL+enter: inter line after
      CTRL+X: delete line
      CTRL+K + CTRL+K: delete from cursor to end of line
      CTRL+k-backspace: delete from cursor to start of line
      CTRL+shift+d: duplicate line(s)
      CTRL+j: join lines
      CTRL+k-u: upper case
      CTRL+k-l: lower case
      CTRL+/: comment
      CTRL+alt+/: block comment
      CTRL+y: redo or repeat
      CTRL+shift+z: past and ident
      CTRL+space: autocomplete (repeat to select next suggestion)
      CTRL+m: jump to matching brackets

       

      XML/HTML

       

      CTRL+shift+a: select content into tag
      CTRL+alt+.: close tag

      Find/Replace

      CTRL+f: find
      CTRL+alt+f: replace
      CTRL+alt+g: find next occurrence of current word
      CTRL+CTRL+g: select all occurrences of current word for multiple editing
      CTRL+shift+f: find in files

      Splits/Tabs

      CTRL+alt+1: Single column
      CTRL+alt+2: Two columns
      CTRL+alt+5: Grid (4 groups)
      CTRL+[1,2,3,4]: Focus group
      CTRL+shift[1,2,3,4]: Move file to group
      CTRL+[1,2,3...] Select tab

      Bookmarks

      CTRL+f2: Toggle bookmark
      f2: next bookmark
      shift+f2: previous bookmark
      CTRL+shift+f2: clear bookmark

      Marks

      CTRL+k-space: set mark // CTRL+k-; for me
      CTRL+k-w: delete from cursor to mark
      CTRL+k-a: select from cursor to mark
      CTRL+k-g: clear mark

      Editing

      CTRL + X    Cut line
      CTRL + SHIFT + ↑    Move line/selection up
      CTRL + SHIFT + ↓    Move line/selection down
      CTRL + L    Select line - Repeat to select next lines
      CTRL + D    Select word - Repeat select others occurrences
      CTRL + M    Jump to closing parentheses Repeat to jump to opening parentheses
      CTRL + SHIFT + M    Select all contents of the current parentheses
      CTRL + SHIFT + K    Delete Line
      CTRL + KK   Delete from cursor to end of line
      CTRL + K + SPACE    Delete from cursor to start of line
      CTRL + ]    Indent current line(s)
      CTRL + [    Un-indent current line(s)
      CTRL + SHIFT + D    Duplicate line(s)
      CTRL + J    Join line below to the end of the current line
      CTRL + /    Comment/un-comment current line
      CTRL + SHIFT + /    Block comment current selection
      CTRL + Y    Redo, or repeat last keyboard shortcut command
      CTRL + SHIFT + V    Paste and indent correctly
      CTRL + Space    Select next auto-complete suggestion
      CTRL + U    soft undo; jumps to your last change before undoing change when repeated
      Alt + SHIFT + W     Wrap Selection in html tag
      Alt + .     Close current html tag

       

      Windows

       

      CTRL + Alt + Up     Column selection up
      CTRL + Alt + Down   Column selection down

       

      Linux

       

      Alt + SHIFT + Up    Column selection up
      Alt + SHIFT + Down  Column selection down

       

      Navigation/Goto Anywhere

       

      CTRL + P    Quick-open files by name
      CTRL + R    Goto symbol
      CTRL + ;    Goto word in current file
      CTRL + G    Goto line in current file

      General

      CTRL + SHIFT + P    Command prompt
      CTRL + KB   Toggle side bar
      CTRL + SHIFT + Alt + P  Show scope in status bar

      Find/Replace

      CTRL + F    Find
      CTRL + H    Replace
      CTRL + SHIFT + F    Find in files

      Tabs

      CTRL + SHIFT + t    Open last closed tab
      CTRL + PgUp     Cycle up through tabs
      CTRL + PgDn     Cycle down through tabs
      CTRL + ⇆    Find in files
      CTRL + W    Close current tab
      Alt + [NUM]     Switch to tab number [NUM] where [NUM] <= number of tabs

       

      Split window

       

      Alt + SHIFT + 1     Revert view to single column
      Alt + SHIFT + 2     Split view into two columns
      Alt + SHIFT + 3     Split view into three columns
      Alt + SHIFT + 4     Split view into four columns
      Alt + SHIFT + 5     Set view to grid (4 groups)
      Alt + SHIFT + 8     Split view into two rows
      CTRL + [NUM]    Jump to group where num is 1-4
      CTRL + SHIFT + [NUM]    Move file to specified group where num is 1-4

      Bookmarks

      CTRL + F2   Toggle bookmark
      F2  Next bookmark
      SHIFT + F2  Previous bookmark
      CTRL + SHIFT + F2   Clear bookmarks

      Text manipulation

      CTRL + KU   Transform to Uppercase
      CTRL + KL   Transform to Lowercase

 

Aucun commentaire

 

Laissez un commentaire