「已注销」 2016-12-22 11:09 采纳率: 0%
浏览 123

如何在atom.io下运行我的golang主软件包?

I use atom.io with go-plus package to develop golang. I usually run main package with "Golang: run Package" command, but it has disappeared recently, and I do not know if there is another way to do it apart from that ...

Any help will be nice.

Thanks in advance

  • 写回答

1条回答 默认 最新

  • dphs48626 2016-12-22 11:42
    关注

    With additional plugins:

    atom-runner: https://atom.io/packages/atom-runner

    Once you install it, just hit <kbd>ALT+R</kbd> to run the file. Note that this may collide with the go-plus plugin's Rename functionality. You may change any of the key bindings in Atom's settings (change one of them to be unique to your liking). If you don't want to change keybindings, you may use Atom's Command Palette: press <kbd>CTRL+SHIFT+P</kbd>, then type "run" or "run file", and it will be the first or second item.

    plattformio-ide-terminal: https://atom.io/packages/platformio-ide-terminal

    Installing this gives you an internal terminal. Click the plus icon at the bottom, which opens a terminal. You can configure it to open a terminal having the working directly of the current file, so after that all you need is to type go run xx.go. You may also "fast-open" the terminal by pressing <kbd>ALT+SHIFT+T</kbd>.

    Note: platformio-ide-terminal is a fork of terminal-plus, one which did not work for me (and reportedly for others).

    评论

报告相同问题?

悬赏问题

  • ¥15 运筹学中在线排序的时间在线排序的在线LPT算法
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧