Sublime Text: how to make shortcut for inserting text?

Select the Key Bindings – User item under Sublime’s Preferences, then add the following example line: {“keys”: [“ctrl+shift+c”], “command”: “insert_snippet”, “args”: {“contents”: “hello!”}} This will add a CTRL+SHIFT+C shortcut to insert the hello! snippet. By the way, don’t forget to add a comma to the previous key binding hash so that all but the last … Read more

Sublime Text edits since last save

I know this already has an accepted answer, but it is not necessary to install FileDiffs or anything else. Just right click on the modified window and select Show Unsaved Changes. A pane will show up at the bottom, listing the differences. There isn’t an obvious way to dismiss the pane, but Ctrl+F will replace … Read more

Highlighting comments containing TODO in Sublime Text 2 [closed]

Sublime Linter should do the trick. You can add underlining for custom static text. All you need is the Sublime Package Manager: Press Ctrl/Cmd+Shift+P Search for “Package Control: Install Package” Search for “SublimeLinter” As stated by jon in the first comment: For ST3, the SublimeLinter-annotations plugin highlights TODO, FIXME etc.

Sublime Text on Ubuntu 14.04 – Keeps attempting to remove it

This page in Ubuntu’s bug tracker describes this particular situation. Apparently this is a known bug with 14.04, possibly because of a regression with GLib, or a mismatch between GLib and GTK (so says one of the commenters). Nothing is trying to remove Sublime, it’s just an error in a programming library. If nothing is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)