Tag archives for file type

  1. How to Set a Key Binding in Sublime Text Based on the File Type the Command Is Running on

    In my Sublime Text 3, I use JsFormat to format my javascript source code. Its key binding follows:

    I have noticed that the JsFormat used the selector context operand to make sure that the js_format command would only run on file types “.js”, “.json” or “.html”. This is to avoid key clashes with other Continue reading...