Reader small image

You're reading from  Mastering Sublime Text

Product typeBook
Published inDec 2013
PublisherPackt
ISBN-139781849698429
Edition1st Edition
Right arrow
Author (1)
Dan Peleg
Dan Peleg
author image
Dan Peleg

Dan Peleg is an accomplished software engineer. As a former developer in the Israeli Intelligence Force, he holds extensive experience in both defense and robotic industries, and has previously lectured at DefCon conventions. Dan has developed unique algorithms for robotic platforms, specializes in a variety of software platforms, and currently works as the CTO for an American startup company.
Read more about Dan Peleg

Right arrow

New key bindings


Let's open the user default key bindings by going to Preferences | Key Bindings-User. This will open a new file (should be an empty JSON array) named Default (OS).sublime-keymap, where OS is replaced with our operating system.

Let's add the following line to the array:

{ "keys": ["super+alt+;"], "command": "run_macro_file", "args": {"file": "Packages/User/semicolon.sublime-macro"} }

This line will run the macro that is located in Packages/User and is named semicolon.sublime-macro when pressing Super + Alt + ;, Super is WinKey in Windows or Linux and Command on OS X. Our file should look like the following screenshot:

Once you save this file, you can run the macro using the specified shortcut.

Tip

All commands used by shortcuts are the same commands that are used by the macros.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering Sublime Text
Published in: Dec 2013Publisher: PacktISBN-13: 9781849698429

Author (1)

author image
Dan Peleg

Dan Peleg is an accomplished software engineer. As a former developer in the Israeli Intelligence Force, he holds extensive experience in both defense and robotic industries, and has previously lectured at DefCon conventions. Dan has developed unique algorithms for robotic platforms, specializes in a variety of software platforms, and currently works as the CTO for an American startup company.
Read more about Dan Peleg