how to install sublime

the good practise for go lang development is using:

sublime+GoSublime+gocode+MarGo

 

1.download sublime:

http://www.sublimetext.com/

 

2.open sublime then "Ctrl+`"to open command line mode, type:

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.restart sublime, check if there is "Package Control" in the "Preferences"

 

4."Ctrl+Shift+p" open "Package Control", then type "pcip" to get "Package Control: Install Package", then type "GoSublime" to install GoSublime plugin. the same actions for "SidebarEnhancements" and "Go Build" plugin as well.

 

5.you can type "Ctrl+9" to open command terminal. then type"go env" to check if the environment is ok or not

 

Config sublime for Go env

 

6. Open "Preferences"->"Package Settings"->"GoSublime"->"Settings-Default"

copy all contents of the opened config file

 

7. Open "Preferences"->"Package Settings"->"GoSublime"->"Settings-User"

paste all contents into the opened empty config fle, and save it.

 

你可能感兴趣的:(Install)