Sublime text x is a very good editor, but a variety of plug-ins need to install themselves, sometimes a bit inconvenient, especially when they do not know how to install the time. Often used in development, function jumps, is a more difficult to install things, recorded as follows (System for Windows):
1, online download ctags.exe, put into C:\windows\system32;
2, under Sumblime command line, (Ctrl + ' or view > Show console), execute the following command: 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 ' Restart Sublime Text to finish installation '
3. Open the Sublime Control Panel, (Ctrl+shift+p or Preferences > Package control), enter: Install, and then enter ctags, installation ctags;
4, right-click in the project folder, Ctags:rebuildtags, ready to work finished. In the function where you need to jump, right-click > navigate to Defination, fix it.
GBK developed the file garbled, installation ConvertToUtf8
1. Under the sublime command line (ctrl+shift+p or Preferences > Package control), execute the command as follows: Import Urllib.request,os; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener ( Urllib.request.build_opener (Urllib.request.ProxyHandler ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')) . Read ())
2. Execute in Control Panel (ctrl+shift+p or Preferences > Package control), Input: Install package, restart Sublime, enter: ConvertToUtf8, done, Open the file again, there is no garbled, you can also install the GBK Encoding support plugin.
Sublime use is familiar with various plug-ins, so as to be handy!
Sublime Text 3 Install Ctags, support function jump, install CONVERTTOUTF8 support Chinese steps