Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save VBourdine/f8068a19303c0ecadf082f4b3a479241 to your computer and use it in GitHub Desktop.
Save VBourdine/f8068a19303c0ecadf082f4b3a479241 to your computer and use it in GitHub Desktop.
Sublime Text 3 - User Key Bindings (IntelliJ IDEA Style) - Windows
[
{ "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+d"], "command": "duplicate_line" },
{ "keys": ["shift+alt+up"], "command": "swap_line_up" },
{ "keys": ["shift+alt+down"], "command": "swap_line_down" }
]
@gcruz-mc
Copy link

gcruz-mc commented Jan 6, 2021

Thank you for putting this together!

@fernando-s97
Copy link

fernando-s97 commented Dec 11, 2021

I'm also using those

[
	{ "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
	{ "keys": ["ctrl+d"], "command": "duplicate_line" },
	{ "keys": ["shift+alt+up"], "command": "swap_line_up" },
	{ "keys": ["shift+alt+down"], "command": "swap_line_down" },
	// Camel humps
	{ "keys": ["ctrl+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
	{ "keys": ["ctrl+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
	// Camel humps selection
	{ "keys": ["ctrl+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
	{ "keys": ["ctrl+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
	// De/select occurence
	{ "keys": ["alt+j"], "command": "find_under_expand" },
	{ "keys": ["alt+shift+j"], "command": "soft_undo" },
]

@kamilmodest
Copy link

A bit corrected for mac and added two more:

[
    { "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
    { "keys": ["super+d"], "command": "duplicate_line" },
    { "keys": ["shift+alt+up"], "command": "swap_line_up" },
    { "keys": ["shift+alt+down"], "command": "swap_line_down" },
    { "keys": ["super+["], "command": "jump_back" },
    { "keys": ["super+]"], "command": "jump_forward" }
]

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