How to configure Sublime Text 2/3 to use direct Ctrl+Tab order and to create new tabs after the last one?

To achieve the Ctrl+Tab and Ctrl+Shift+Tab behavior you can add the following lines to your sublime-keymap: { “keys”: [“ctrl+tab”], “command”: “next_view” }, { “keys”: [“ctrl+shift+tab”], “command”: “prev_view” } To open sublime-keymap: click “Preferences” click “Key Bindings” You will see two settings file, select a file that named “User” This is a visual example on how … Read more

How can I exclude a folder from indexing in Sublime Text, while still showing it in the sidebar?

To exclude files from the index but keep them in the sidebar, use the binary_file_patterns setting in your User Settings, for example: “binary_file_patterns”: [ “*.jpg”, “*.jpeg”, “*.png”, “*.gif”, “*.ttf”, “*.tga”, “*.dds”, “*.ico”, “*.eot”, “*.pdf”, “*.swf”, “*.jar”, “*.zip”, “node_modules/**”, “bower_components/**” ] Make sure to copy the values from your Settings – Default preferences (here shown as … Read more

Keyboard shortcut to comment lines in Sublime Text 2

By default on Linux/Windows for an English keyboard the shortcut is Ctrl+Shift+/ to toggle a block comment, and Ctrl+/ to toggle a line comment. If you go into Preferences->Key Bindings – Default, you can find all the shortcuts, below are the lines for commenting. { “keys”: [“ctrl+/”], “command”: “toggle_comment”, “args”: { “block”: false } }, … Read more

How can I select every other line with multiple cursors in Sublime Text?

Find: Ctrl+F If regular expressions are not already enabled, enable them: Alt+R Type in the expression .*\n.*\n Find all: Alt+Enter Press left arrow to get rid of the selections, leaving just the cursors: ← You now have a cursor at the start of every odd-numbered line. If you wanted even-numbered lines, press down: ↓ Depending … Read more

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