简体   繁体   English

在Eclipse中运行Clojure文件

[英]Run clojure file in eclipse

I have installed clojure plugins in eclipse so that I can start developing apps on clojure. 我已在eclipse中安装了clojure插件,以便可以开始在clojure上开发应用程序。 I am currently in the learning phase. 我目前处于学习阶段。 I need to know how can i run a clojure file with a Keyboard shortcut or a single mouse button click in eclipse. 我需要知道如何在eclipse中使用键盘快捷键或单个鼠标按钮运行clojure文件。

Currently I am running this way, 目前,我正在以这种方式运行,

  1. I press Ctrl + F11 , It launches the REPL 我按Ctrl + F11 ,它将启动REPL
  2. Then in the REPL I call the function name. 然后在REPL中,我调用函数名称。 For example (hello "world"). 例如(您好“世界”)。 I have to type it in literaly in the REPL 我必须在REPL中按字面值输入

What I am looking for. 我在寻找什么。

  1. I want to press a short cut key 我想按一个快捷键
  2. The output after evaluating the current file should be displayed How can I achieve this? 评估当前文件后的输出应显示如何实现?

Use Clojure -> Load the file in REPL or short cut key Ctrl + Alt + S . 使用Clojure > Load the file in REPL或快捷键Ctrl + Alt + S中

It'll load the file in REPL and show the result. 它将文件加载到REPL中并显示结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM