In case of Sublime Text, the mouse actions are configured by what are known as mousemap files (that have a file extension of .sublime-mousemap
). You can have generally 2 variants of these files :-
Default.sublime-mousemap
: This will define mouse actions for any platform.
Default ($platform).sublime-mousemap
: This will define mouse actions for a specific platform, where $platform
is any one of Windows
, Linux
or OSX
depending on your operating system.
You can view the default shipped mousemap files by using View Package File
from the command palette and searching for mousemap.
In order to define your own mouse actions (or override any existing actions), you have to create a file by the name of Default.sublime-mousemap
in the User
directory (to get to this directory, select Preferences -> Browse Packages ...
from the main menu) for platform independent override (or Default ($platform).sublime-mousemap
for platform dependent overrides depending on your OS).
Once that's done, here i