Sublime_Text使用
配置
-
Sublime_Text:Preferences.sublime-settings-User
// Settings in here override those in "Default/Preferences.sublime-settings", and // are overridden in turn by file type specific settings. { //"font_face": "Consolas", "font_face": "YaHei Consolas hybrid", "font_size": 11, "tab_size": 4, "translate_tabs_to_spaces": true, "ignored_packages": [], "word_wrap": "false" }
-
添加到右键菜单
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Open With Sublime Text 2] "Icon"="D:\\tools\\Sublime_Text\\sublime_text.exe,0" @="Open With Sublime Text 2" [HKEY_CLASSES_ROOT\*\shell\Open With Sublime Text 2\command] @="D:\\tools\\Sublime_Text\\sublime_text.exe %1"
解决GBK中文乱码
- 安装Package Control
按Ctrl+~
打开命令行,粘贴如下命令:
- 官方提供的安装代码: https://sublime.wbond.net/installation
-
Subline Text 2
import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
-
Sublime Text 3
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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)