How do you print in Sublime Text 2

There is also the Simple Print package, which uses enscript to do the actual printing. Similar to kenorb’s answer, open the palette (ctrl/cmd+shift+p), “Install package”, “Simple Print Function” you MUST install enscript and here is how: https://github.com/svenax/SublimePrint

Limit File Search Scope in Sublime Text 2

Add and edit this in your ~/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings file. // These files will still show up in the side bar, but won’t be included in // Goto Anything or Find in Files “binary_file_patterns”: [“*.jpg”, “*.jpeg”, “*.png”, “*.gif”, “*.ttf”, “*.tga”, “*.dds”, “*.ico”, “*.eot”, “*.pdf”, “*.swf”, “*.jar”, “*.zip”], “folder_exclude_patterns”: [“.svn”, “.git”, “.hg”, “CVS”],

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)