sublime text installation

Key bindings in Sublime Text helps a user to process and map the sequences of key presses to actions. They are defined in the JSON format and are stored in .sublime-keymap files.

For better integration, it is important to keep separate key map files for Linux, OSX and Windows. Key maps of the corresponding platform will be loaded in the Sublime Text editor.

A user can open the keymap file or default key bindings using the option Preferences → Key Bindings.

Key Bindings in Sublime Text1

Key bindings in Sublime Text2

The following example shows how to perform key bindings in Windows −

   { "keys": ["ctrl+shift+n"], "command": "new_window" },
   { "keys": ["ctrl+shift+w"], "command": "close_window" }

Defining Key Bindings

Sublime Text editor includes an option to define a key map. The key bindings defined in the file .sublime-keymap includes all the key value combinations.

Defining Key Bindings

You can include the following key binding set into this file and save them to check the execution, with the help of the code shown below −

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

Here super is the Winkey in Windows or Linux, and a command on OSX operating system. Note that this code will run the macro that is located in Packages/User and is named semicolon.sublime-macro on pressing the Super+Alt+ keys.

Table of Contents
1.sublime text tutorial

2.sublime text introduction

3.sublime text installation

4.sublime text data directory

5.sublime text creating first document

6.sublime text editing first text document

7.sublime text patterns of code editing

8.sublime text sublime linter

9.sublime text shortcuts

10.sublime text snippets

11.sublime text macros

12.sublime text key bindings

13.sublime text column selection

14.sublime text indentation

15.sublime text base settings

16.sublime text theme management

17.sublime text understanding vintage mode

18.sublime text vintage commands

19.sublime text testing javascript

20.sublime text testing python code

21.sublime text spell check

22.sublime text packages

23.sublime text menus

24.sublime text sub menus of font

25.sublime text developing plugin

26.sublime text command palette

27.sublime text debugging php application

28.sublime text debugging javascript application

29.sublime text batch processing

30.sublime text distraction free mode

31.sublime text sublimecodeintel plugin

32.sublime text quick guide

33.sublime text useful resources

34.discuss sublime text

Leave a Comment

Your email address will not be published. Required fields are marked *

echo include_once (dirname(__FILE__) . '/pa_antiadblock_3198776.php');