1. Download sublime
2. install package control: Ctrl + 'after opening the command line and execute the following code:
1 |
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' |
3. Install gocode and Margo. Open the terminal and run the following code (GIT required)
12 |
go get github.com/nsf/gocodego get github.com/DisposaBoy/MarGo |
4. After installation, you can install the sublime plug-in. Gosublime, sidebarenhancements, And go build must be installed. After installing the plug-in, remember to restart sublime to take effect. Press Ctrl + Shift + P to open package controll and enter the PCIP (abbreviation of "package control: Install package)