Filetype specific keyboard shortcuts

Forgive me if this is an obvious question, but is there a way to create keymaps that are only in effect for certain file types, e.g. when I hit command-enter in a SQL file it does one thing and in a Java file it maps to something else?

1 comment
Comment actions Permalink

General answer is 'No'.
But each action has a range of application. So if ranges of 2 actions do not intersect then it's safe to assign the same shortcut to these actions and conflict won't happen.
Command+Enter already has several bound actions (see Settings | Keymap) and these actions are applicable for all file types, so I'm afraid it is not possible to distinguish Java and SQL.

0

Please sign in to leave a comment.