ostinelli / SublimErl

An Erlang Plugin for Sublime Text 2, which enables code completion and allows you to run tests within the editor itself.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default keyboard shortcut to auto indent in Linux

victorolinasc opened this issue · comments

I believe that in most linux flavored distros the keyboard shortcut to auto-ident will not work because it is a system wide shortcut for locking the session (much like the super + L in windows).

I know it is easy to override the default key bindings for this action, but I believe that a change here would enhance the out of the box experience for linux users.

Regards!

PS: keep up the excellent work!

hi @victorolinasc,

what do you believe would be a good shortcut? :)

I use ctrl + shift + L.

It would also be nice to have an option to hook it on the save action.

Rgds

Thanks for the suggestion.

+1 yep this one caught me out as a Linux user.

Would be perfect if we could configure shortcuts ourselves.
Talking about formatting code it'd be best if shortcut was the same as in popular IDEs out there. E.g. Netbeans uses Alt+Shift+F. I have no problem using Alt+Ctrl+L (which is IntelliJ IDEA default) on Linux, because it's more natural to me to remap Linux's Alt+Ctrl+L to Meta+L (Meta is by default the Win key on Windows specific keyboards) to get universal shortcut for locking the screen both in Linux and Windows, as many of us Linux users dual-boot.