How to select all instances of a variable and edit variable name in Sublime

Put the cursor in the variable. Note: the key is to start with an empty selection. Don’t highlight; just put your cursor there. Press ⌘D as needed. Not on a Mac? Use CtrlD. Didn’t work? Try again, making sure to start with nothing selected. More commands: Find All: Ctrl⌘G selects all occurences at once. Not … Read more

Sublime Text 2 – View whitespace characters

To view whitespace the setting is: // Set to “none” to turn off drawing white space, “selection” to draw only the // white space within the selection, and “all” to draw all white space “draw_white_space”: “selection”, You can see it if you go into Preferences->Settings Default. If you edit your user settings (Preferences->Settings – User) … Read more

Indenting code in Sublime text 2?

You can find it in Edit → Line → Reindent, but it does not have a shortcut by default. You can add a shortcut by going to the menu Preferences → Keybindings → User, then add there: { “keys”: [“f12”], “command”: “reindent”, “args”: {“single_line”: false} } (example of using the F12 key for that functionality) … Read more

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