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

How does one paste and indent in Visual Studio Code?

Currently, Visual Studio Code doesn’t provide this specific functionality. We could vote for this feature at Visual Studio’s UserVoice website. There’s already a ticket open for this feature: Paste and auto align code. If you’ve got an account, you can vote for this feature so it gets more attention. If it has enough attention, Visual … Read more

How can I save text folds and folded code block data to .sublime-workspace?

First of all, There’s already a really nice plugin that does that and much more, it’s called BufferScroll Buffer Scroll is a simple Sublime Text plug-in which remembers and restores the scroll, cursor positions, also the selections, marks, bookmarks, foldings, selected syntax and optionally the color scheme. Trying to answer your question, I did a … 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

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

How to change Sublime Text 2 selected tab color

This is the best solution I have found: https://coderwall.com/p/jg4kog Inside of Sublime Text go to Preferences > Browse packages Navigate to the User folder. There you create a file called Default.sublime-theme Open that file in Sublime Text and copy and paste the following JSON object: . [ {“class”: “tab_control”, “attributes”: [“selected”, “file_medium_dark”],”tint_modifier”:[255, 255, 255, 80]} … Read more

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