Last active
August 29, 2015 13:55
-
-
Save kalpesh-fulpagare/8705388 to your computer and use it in GitHub Desktop.
Installing package manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://sublime.wbond.net/installation#st3 | |
The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console. | |
SUBLIME TEXT 3 | |
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) | |
SUBLIME TEXT 2 | |
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) | |
Now to install package: | |
Press "ctrl + shift + p" and then type "install". | |
Once you see "Package Control: Install Package", enter. | |
//User preferred setting | |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", | |
"font_size": 10, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"word_wrap": "auto", | |
"indent_to_bracket": true, | |
"trim_trailing_white_space_on_save": true, | |
"smart_indent": true, | |
"detect_indentation": true, | |
"auto_indent": true, | |
"save_on_focus_lost": true | |
} | |
// Keyboard Setting | |
[ | |
// Defaults | |
// { "keys": ["ctrl+shift+m"], "command": "expand_selection", "args": {"to": "brackets"} }, | |
// { "keys": ["ctrl+m"], "command": "move_to", "args": {"to": "brackets"} }, | |
// { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } }, | |
// { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, | |
// { "keys": ["ctrl+d"], "command": "find_under_expand" }, | |
// { "keys": ["ctrl+shift+d"], "command": "duplicate_line" }, | |
// { "keys": ["ctrl+shift+k"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, | |
// { "keys": ["ctrl+e"], "command": "slurp_find_string" }, | |
// Changed | |
{ "keys": ["ctrl+shift+/"], "command": "expand_selection", "args": {"to": "brackets"} }, | |
{ "keys": ["ctrl+/"], "command": "move_to", "args": {"to": "brackets"} }, | |
{ "keys": ["ctrl+m"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["ctrl+shift+m"], "command": "toggle_comment", "args": { "block": true } }, | |
{ "keys": ["ctrl+shift+d"], "command": "find_under_expand" }, | |
{ "keys": ["ctrl+d"], "command": "duplicate_line" }, | |
{ "keys": ["ctrl+e"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["ctrl+shift+k"], "command": "slurp_find_string" }, | |
{ "keys": ["f12"], "command": "reindent" }, | |
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" } | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment