有没有办法在 VS Code 中使用 lein 的 REPL?我的意思是,使用tasks.js 或其他东西。
我想要一个集成环境来运行、测试和构建我的 clojures 应用程序。我想也许我可以使用 vs code 来实现这样的东西,因为它支持第三方编译器。
我可以用 lein run
,但它不适用于 lein repl
.
我已经阅读了任务的文档,但没有与 REPL 相关的内容。
这是我使用的 tasks.js 代码:
{
// See http://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "lein",
"tasks":
[
{
"taskName": "run",
"showOutput": "always",
"args": ["run"],
"isBuildCommand": true,
"isWatching": false
},
{
"taskName": "repl",
"showOutput": "always",
"args": ["repl"],
"isWatching": true
}
],
"isShellCommand": true
}
最佳答案
作为Calva的作者我可以推荐它。 😀
说真的,目前它最支持交互式编程。在 shadow-cljs
的“编辑器”部分有关于它可以做什么的简短摘要。用户指南:https://shadow-cljs.github.io/docs/UsersGuide.html#_calva_vs_code
关于clojure - 在 VS CODE 中运行 (lein) REPL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36773212/