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

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

问题描述

我来自纯Windows Visual Studio编程背景,几乎没有Linux经验.似乎可以使用 VS代码在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.

推荐答案

如果您使用的是Visual Studio代码的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天全站免登陆