Use sublime to build a sublimego Development Environment Based on gosublime + gocode + Margo

Source: Internet
Author: User
Tags gocode

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.