Sublime Text 2 recognize underscore templates as HTML

Go to “Browse Packages” in the menu (where the menu item is depends on your platform). Open up HTML/HTML.tmLanguage Change this line (line 286 in my HTML.tmLanguage): <string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)</string> to this: <string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)(?!.*type=[“‘]text/template[‘”])</string> Now any script tags with type=”text/template” or type=”text/template” will render as html and not javascript.

Hotkey to end the line with a semicolon and jump to a new line in Sublime Text 2

Best solution for this is recording a macro on Sublime Text and then assigning it to a keyboard shortcut. Follow these steps: Create a line such as alert(‘hello’) and leave the cursor right after letter ‘o’. Then go to Tools > Record a Macro to start recording. Press Command+→ to go to the end of … Read more

Sublime Text – how to figure out internal command name for key binding?

Hit Ctrl` (backtick) to open the console, then enter sublime.log_commands(True) to turn on command logging. Go through the menus and click your target, and command: insert_snippet {“name”: “Packages/XML/long-tag.sublime-snippet”} comes up. Enter the following into your Preferences -> Key Bindings – User file: { “keys”: [“ctrl+alt+shift+w”], “command”: “insert_snippet”, “args”: { “name”: “Packages/XML/long-tag.sublime-snippet” } } (changing the … Read more

Sublime Text 3 – Package Control : “No packages available for installation” error when trying to install packages through secure channel

Had the same issue today. Reinstalled package control: Deleted Package Control folder inside the Sublime Text 3 > Packages folder went to https://sublime.wbond.net/installation and executed the manual installation instructions there …namely Click the Preferences > Browse Packages… menu Browse up a folder and then into the Installed Packages/ folder Download Package Control.sublime-package and copy it … Read more

No more SideBarEnhancements in Sublime Text 2?

The maintained version of SideBarEnhancements now only supports Sublime Text 3. A public beta version of ST3 is available for download, and I highly recommend upgrading if possible, unless you absolutely depend on some old ST2-only plugins, and there is no chance that they’ll be ported to ST3/Python 3.3. Many plugins now support both versions, … Read more