>我是一名Java Web开发者,使用IDEA作为日常开发工具。对于Golang开发其实更应该选择WebStorm配合Go Plugin,这样会更轻量些。
PS: iNote是在IDEA里开发的。
##下载WebStorm 10
####[官方下载地址](https://www.jetbrains.com/webstorm/whatsnew/ "下载地址")
##安装WebStorm
####Windows请参考Win版的安装方式
![enter image description here][1]
##下载Golang Plugin(最新版本是201)
####[Go Plugin](https://github.com/go-lang-plugin-org/go-lang-idea-plugin/releases "Golang Plugin")
![enter image description here][2]
##为WebStorm安装Go Plugin
####启动WebStorm(如果你更改了一些默认配置会提示重启)
###安装下载好的Golang Plugin
####Configure -> Plugins
![enter image description here][3]
####从本地磁盘选择下载好的Go Plugin,安装后重启WebStorm
![enter image description here][4]
##创建一个Golang项目
![enter image description here][5]
####选择Empty Project,选择好Golang项目的文件目录,点击Create
![enter image description here][6]
####创建一个Go文件main.go
![enter image description here][7]
###设置Golang SDK,并在main.go里编写你的Golang代码
![enter image description here][8]
![enter image description here][9]
##配置Golang运行环境
####点击右上角的向下三角形按钮,在弹出窗口点击加号新增一个Go Application
![enter image description here][10]
####在File项选择我们刚才的main.go文件(请注意提示,记得把文件的包名改为main才可以运行)
![enter image description here][11]
####点击右上角的绿色三角形运行
![enter image description here][12]
####到此配置完毕,enjoy coding!
###如图片不能显示或显示不好请移步http://120.55.100.241/#2
[1]: http://120.55.100.241/static/uploads/1429414276.png
[2]: http://120.55.100.241/static/uploads/1429414563.png
[3]: http://120.55.100.241/static/uploads/1429415023.png
[4]: http://120.55.100.241/static/uploads/1429415295.png
[5]: http://120.55.100.241/static/uploads/1429415382.png
[6]: http://120.55.100.241/static/uploads/1429415551.png
[7]: http://120.55.100.241/static/uploads/1429415666.png
[8]: http://120.55.100.241/static/uploads/1429415854.png
[9]: http://120.55.100.241/static/uploads/1429416194.png
[10]: http://120.55.100.241/static/uploads/1429416547.png
[11]: http://120.55.100.241/static/uploads/1429416750.png
[12]: http://120.55.100.241/static/uploads/1429416917.png
有疑问加站长微信联系(非本文作者)