Creating A Keyboard Shortcut In Sublime To Open Specific Files
Today I figured out how to create a keyboard shortcut to open a specific file in Sublime Text 2.
This is useful, for example, for hotkeying my MAMP apache vhosts file—a file I commonly edit.
Add the following to your user keybindings file in sublime to set the F1 Key to open the MAMP vhosts file:
{ "keys": ["f1"], "command": "open_file", "args": {"file": "/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf"} },
Change the keys and filenames to fit your needs.
blog comments powered by Disqus