Skip to content

Instantly share code, notes, and snippets.

@thbkrkr
Last active August 31, 2022 03:54
Show Gist options
  • Save thbkrkr/3194275 to your computer and use it in GitHub Desktop.
Save thbkrkr/3194275 to your computer and use it in GitHub Desktop.
Custom & Eclipse shortcuts key bindings (keyboard mapping) for Sublime Text 2 and 3
[
{ "keys": ["f12"], "command": "htmlprettify"},
{ "keys": ["f1"], "command": "fold" },
{ "keys": ["f2"], "command": "unfold" },
{ "keys": ["ctrl+à"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+!"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+shift+f"], "command": "reindent" , "args": {"single_line": false}},
{ "keys": ["ctrl+shift+s"], "command": "save_all" },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+alt+j"], "command": "join_lines" },
{ "keys": ["ctrl+alt+down"], "command": "duplicate_line" },
{ "keys": ["shift+ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["shift+ctrl+f4"], "command": "close_all" },
{ "keys": ["shift+ctrl+y"], "command": "lower_case" },
{ "keys": ["shift+ctrl+x"], "command": "upper_case" },
{ "keys": ["ctrl+k"], "command": "find_next" },
{ "keys": ["shift+ctrl+k"], "command": "find_prev" }
]
@littlebeeper
Copy link

Thanks a lot :)

@quantuminformation
Copy link

nice stuff

@noleto
Copy link

noleto commented Mar 18, 2014

exactly what i was looking for ;)

@nachomezzadra
Copy link

great, thanks!

@legeek11202
Copy link

Thanks you guy :D

@digulla
Copy link

digulla commented Sep 3, 2014

See https://gist.github.com/digulla/91833a90b5149a09588a for a mapping which also support ctrl+alt+up

@sascha-sphw
Copy link

thumbs up!

@mayusa
Copy link

mayusa commented Nov 6, 2014

Great~ thanks~~~

@felansu
Copy link

felansu commented Nov 11, 2014

Thanks man...

@stephanechauvin
Copy link

Thanks a lot !! :)

@arberg
Copy link

arberg commented Feb 12, 2015

awesome

@VBourdine
Copy link

cool - thanks!

@montytorr
Copy link

awesome!

@PaytonZ
Copy link

PaytonZ commented Mar 25, 2015

Very useful ;-) Thanks

@sixinli
Copy link

sixinli commented Apr 7, 2015

awesome thanks!!

@charleston10
Copy link

thanks : ]

@GGotardo
Copy link

GGotardo commented May 7, 2015

Tks!!!!

@ahmed81111
Copy link

thanks

@celeritas9
Copy link

Thanks...

@ergobot
Copy link

ergobot commented Dec 9, 2015

thank you

@SZ-Edward
Copy link

Thx man!

@jotadepicas
Copy link

+1 !

@gxferreira
Copy link

Thank you very much!

@dulio
Copy link

dulio commented Jul 15, 2016

Thx!

@johnglacken
Copy link

Fantastic, thanks for this!

@thomasgustavo
Copy link

I made two additions, find next (ctrl+k) and find prev (ctrl+shift+k). You can add it to your gist, if you want:
https://gist.github.com/thomasgustavo/a774920abfec1af81af373484b5b8881

Thanks!!

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