how to install sublime

本文详细介绍了如何在Sublime Text中设置Go语言开发环境。包括安装Sublime Text、配置Package Control、安装GoSublime插件及GoBuild插件等步骤,并指导如何检查Go环境变量是否配置正确。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值