如何在 VS 代码中设置 Julia? [英] How to setup Julia in VS code?

查看:23
本文介绍了如何在 VS 代码中设置 Julia?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我来自纯 Windows Visual Studio 编程背景,几乎没有 Linux 经验.似乎可以使用 VS Code 在 Julia 中编程,但我不知道如何获取东西正确设置.

I'm coming from a pure Windows Visual Studio programming background with little Linux experience. It seems possible to use VS Code to program in Julia, but I can't figure out how to get things set up correctly.

是否有人有很好的示例 launch.jsontasks.json 或其他可以用作构建示例的文件?

Does anybody have good example launch.json, tasks.json, or other files that can serve as an example to build from?

在详细的教程中看到这将是一件很棒的事情.

This would be a great thing to see in a detailed tutorial.

推荐答案

如果您使用 VisualStudio Code 的 Julia 扩展,事情的工作方式如下.

Here is how things work if you are using the Julia extension for VisualStudio Code.

扩展添加了一堆新命令.它们都以julia"开头,因此按该字符串过滤应该会向您展示您可以使用扩展程序执行的所有操作.

The extension adds a bunch of new commands. They all start with "julia", so filtering by that string should show you everything you can do with the extension.

在运行 Julia 代码方面,该扩展目前仅提供两个选项.首先,您可以执行命令来启动 REPL.这只会显示一个默认的 Julia 提示,您可以像与任何其他 Julia REPL 一样与它进行交互.第二个是还有一个命令,由 Ctrl + Enter 触发,将当前编辑器选择或当前编辑器行发送到此 REPL.

In terms of running Julia code, the extension offers only two options right now. First, you can execute a command to start a REPL. This will just show a default Julia prompt, and you can interact with it like you would with any other Julia REPL. The second is that there is also a command, triggered by Ctrl + Enter, to send either the current editor selection or the current editor line to this REPL.

Julia 扩展目前没有提供进一步的集成.我们确实计划在未来添加调试器支持,届时我希望 F5 在调试器中启动当前文件,或类似的东西.但该功能可能还需要几个月的时间.

There is currently no further integration offered by the Julia extension. We do plan to add debugger support in the future, at which point I would expect F5 to start the current file in the debugger, or something like that. But that functionality is probably a couple of months away.

这篇关于如何在 VS 代码中设置 Julia?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆