Skip to content

Instantly share code, notes, and snippets.

@dirajkumar
Last active March 29, 2016 16:34
Show Gist options
  • Save dirajkumar/8703234 to your computer and use it in GitHub Desktop.
Save dirajkumar/8703234 to your computer and use it in GitHub Desktop.
Sublime: Shortcuts

Shortcuts – Sublime and Mavensmate (Mac OS X)

Legends

Command
Option/Alt
Control
Shift
Return/Enter
Delete

General

⌘⇧P Command Palette
⌘P Goto Anything/File
⌘R Goto Symbol/Method
⌃G Goto Line
⌘⇧S Save File As
⌘⌥S Save All
⌘W Close File
⌘⇧T Reopen Closed File
⌘KB Toggle Side Bar
⌃⇧M New Mavensmate Project
⌃⇧O Open Mavensmate Project
⌘S Save File to Server
⌃⇧S Complie File
⌃⇧A Run Async Apex Tests for this Class
⌃⇧R Refresh Current File From Server Key Binding Required
⌃⇧C Clean Project Key Binding Required
⌃⇧T Run Apex Tests Key Binding Required

Moving/Editing

⌘Z Undo
⌘U Soft Undo
⌘⇧Z Redo
⌘⇧U Soft Redo
⌘Y Repeat
⌘⇧V Paste and Indent
⌘⇧↩ Insert Line Before
⌘↩ Insert Line After
⌘; Inserts a Semi Colon at End of Line and Move to Next Line Key Binding Required & Macro Required
⌥⌫ Delete to Beginning of Current Word
fn⌥⌫ Delete to End of Current Word
⌘⌫ Delete From Cursor to Start of Line
⌘KK Delete From Cursor to End of Line
⌘X Delete/Cut Line when nothing is selected
⌘⇧K Delete Line Key Binding Required
⌘⇧D Duplicate Line Key Binding Required
⌃↑ Pervious Symbol/Method Plugin Required
⌃↓ Next Symbol/Method Plugin Required
⌘⌃↑ Swap Line Up
⌘⌃↓ Swap Line Down
⌘J Join Lines
⌘KU Upper Case
⌘KL Lower Case
⌘KT Title Case Key Binding Required
⌘/ Toggle Comment
⌘⌥/ Toggle Block Comment

Selecting

⌘L Select Line (Repeat Select Next Lines)
⌘D Select Word (Repeat Select Others Occurrences in Context for Multiple Editing)
⌘KD Skip under the Current Selection
⌘⇧SpaceBar Expand Selection to Scope Key Binding Required
⌘⇧B Expand Selection to Brackets Key Binding Required

Visualforce/XML/HTML

⌘⇧A Select Content within a Tag
⌘⌥. Close Tag

Find/Replace

⌘F Find
⌘⌥G Find Next Occurrence of Current Word
⌘⌥F Replace
⌘⌥E Replace Next
⌘⌃G Select All Occurrences of Current Word for Multiple Editing
⌘⇧F Find in Files

Splits/Tabs

⌘⌥→ Switch File to Right
⌘⌥← Switch File to Left
⌘[1,2,3…] Select File
⌘⌥1 Single Column
⌘⌥2 Two Columns
⌃[1,2,3,4] Focus Group
⌃⇧[1,2,3,4] Move File to Group
@aarthichidambaram
Copy link

Hi Diraj,
Do you have this shortcuts available for windows users?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment