当前位置: 首页 > 文档资料 > Ruby Wiki 文档 >

如何在Windows 7下配置Sublime Text 2编辑器(需Git)

优质
小牛编辑
134浏览
2023-12-01

Sublime 2 Installation Guide in Windows

  • Install Sublime Text as normal way in Windows
  • Add Sublime Text Path to Path in System->Advanced System settings
  • Download Exuberant Ctags and put ctags.exe to Sublime 2 installation folder
  • Startup the Sublime Text in first time and pin it in Windows 7 Taskbar
  • Open cmd and locate your Sublime User profile folder, %USERPROFILE%\AppData\Roaming\Sublime Text 2\Packages\User
  • git clone https://github.com/Eric-Guo/sublime-user-folder.git .
  • Open the Sublime Text again and install Sublime Package Control by running below code in console line (Ctrl+`)
import urllib2,os; 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())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
  • Close and Reopen the Sublime Text Editor, Ctrl+Shift+P and type 'Upgrade/Overwrite All Packages'
  • Waiting enough time to let Package Control download all the relative package.
  • Remove line '{ "keys": ["ctrl+b"], "command": "build" },' in Default (Windows).sublime-keymap file (bug for Build 2210? won't allow ctrl+k ctrl+b to toggle side bar if not remove it)