开发工具
- Atom
- remix-ide
Atom 安装 solidity 插件后比较好用,高亮、代码提示、语法检查都支持。

remix 用做测试调试工具。

使用 npm 既可安装 remix:
sudo npm install remix-ide -g
完成后,启动:
remix-ide
setup notifications for /Users/mac/test
Shared folder : /Users/mac/test
Starting Remix IDE at http://localhost:8080 and sharing /Users/mac/test
Tue Aug 21 2018 18:02:34 GMT+0800 (CST) Remixd is listening on 127.0.0.1:65520
浏览器访问 http://localhost:8080 即可。
集成
使用 atom 写代码,需要把代码复制到 remix 的代码区,手动复制比较麻烦,remix 提供了与本地沟通的机制。
remix-ide 启动时会把当前目录作为共享目录,例如上面的启动信息里有 "Shared folder : /Users/mac/test",点击remix 页面中的小锁链图标:

WX20180821-181155@2x.png

WX20180821-181420@2x.png

WX20180821-181519@2x.png
这样,就可以使用 atom 写代码,保存后会自动同步到 remix 中,非常方便。