[Erlang 0002] Erlang IDE从我写的一系列Erlang文章阅读人数来看,这篇文章阅读人数最多.可以窥见一斑:好多人在看是否会对一种新语言投入精力的时候,IDE是一个重要的指标,甚至可能就是因为IDE不给力而放弃一种语言,不靠谱是吧,但这是事实;写这篇文章的时候erlide插件还比较差,我提到它的几个问题:无代码自动完成,偶尔提示一下也特别慢,最关键的一点:不支持中文,就因为这个无论它多么好直接被否定掉了; 但是作为少数几个还在持续改进的Erlang IDE插件,erlide现在的版本已经堪称是目前最好用的Erlang IDE.
体验了一下,目前的版本:
- 完美支持中文,在代码中输入中文会提示你把文件编码更改到UTF-8
- 已经有了代码自动完成,包括自定义模块的自动完成
- 方法转到定义功能不错
- 打开大文件(约1MB)没有压力
- 保存即编译
几点注意事项:
安装
Install Erlide by going to Help → Install new software... . In the dialog, enter http://erlide.org/update as URL. Follow the dialogs with the obvious choices and in the end you will be asked to restart.
An alternative way to install is from the Eclipse marketplace Help → Eclipse Marketplace... or if you are using Eclipse 3.7 simply by dragging and dropping the button below into a running Eclipse workspace
Restart. Go to Window → Preferences → Erlang → Installed runtimes and add an entry (or several) for your Erlang installation(s) of choice. The required parameters are the name and the path to the top level directory (i.e. $ERL_TOP). Now restart again.
版本
你可能担心支持最15B版本的Erlang么? 答案:支持,在Eclipse中打开Window → Preferences → Erlang,可以选择当前IDE使用哪个版本的Erlang .见下图
写的技术文章过时了不郁闷,郁闷的是可以更新自己的博客却更新不了被抓站程序抓走的