#148 感谢polarisreview

This commit is contained in:
astaxie
2013-01-21 13:00:49 +08:00
parent 8ce8607f94
commit 2ee60332c0
9 changed files with 197 additions and 166 deletions

22
01.4.md
View File

@@ -404,6 +404,28 @@ Eclipse也是非常常用的开发利器以下介绍如何使用Eclipse来编
图1.16 调试Go程序
## IntelliJ IDEA
熟悉Java的读者应该对于idea不陌生idea是通过一个插件来支持go语言的高亮语法,代码提示和重构实现。
1. 先下载ideaidea支持多平台win,mac,linux如果有钱就买个正式版如果不行就使用社区免费版对于只是开发Go语言来说免费版足够用了
![](images/1.4.idea1.png?raw=true)
2. 安装Go插件点击菜单File中的Setting找到Plugins,点击,Broswer repo按钮。国内的用户可能会报错自己解决哈。
![](images/1.4.idea3.png?raw=true)
3. 这时候会看见很多插件搜索找到Golang,双击,download and install。等到golang那一行后面出现Downloaded标志后,点OK。
![](images/1.4.idea4.png?raw=true)
然后点 Apply .这时候IDE会要求你重启。
4. 重启完毕后,创建新项目会发现已经可以创建golang项目了
![](images/1.4.idea5.png?raw=true)
下一步,会要求你输入 go sdk的位置,一般都安装在C:\Golinux和mac根据自己的安装目录设置选中目录确定,就可以了。
## links
* [目录](<preface.md>)