How to setup Julia in VS code? - visual-studio-code

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.
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.

Here is how things work if you are using the Julia extension for VisualStudio Code.
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.
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.
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.

Related

Is it possible to set up VS Code to run code in an external terminal Window instead of the integrated terminal/output windows?

I used to use the Atom code editor and one of the features I liked about this editor was that when I executed python code it would bring up an external CMD window where I would interact with the code, if input was required, and receive the results.
I have moved to VS Code as Atom is no longer supported and I have looked on here and with Google, but I do not seem to be able to get VS Code to behave in this fashion :(
I am wondering if any of the folks on here with more experience with VS code can advise if what I am looking to do is possible or do I just have to suck it up and use the integrated terminal/output panes at the bottom of the window?
Any advise would be very much appreciated.
I have tried in the "Configure Terminal Settings" to change from Integrated to External, but this has made no difference.

VSCode-like integrated terminal functionality in nvim? (eg: open files mentioned in terminal output in a buffer)

I'm coming from VSCode to Neovim, and for the most part I've been able to accommodate/replicate the workflows and functionality I've gotten used to in VSCode in Vim. Right now, I'm stuck on replicating the Link functionality of the VSCode integrated terminal.
This lets you mouse over text like main.py or server.go:50 and ctrl-click to jump to that file or line location in your editor panes. This really helpful for jumping to the locations of compilation errors or test failures from their associated terminal output.
I've searched for existing plugins/solutions for this but haven't found any. Are there any that I've missed? Otherwise, what might be a good approach to scripting this myself?
I'm new to vimscripting, but I'd assume you could do some regex and with knowledge of the current working directory, you could infer the correct filepath to open.
Replicating one editor's workflow in another is not exactly a good idea as the two editors have—supposedly, if not why switch in the first place?—different feature sets or even paradigms. For instance, staying in insert mode all the time in Vim because that's what you are used to would make no sense because Vim derives most of its value from its modality… and you would probably also find examples in the other direction.
Case in point, compiling and jumping to errors in Vim typically doesn't involve the built-in :terminal at all. You are supposed to use the :help quickfix feature, which exists for that very purpose.
See :help 30.1 for a gentle introduction from the user manual.

How to add language to visual studio code

I want to be able to use vscode for code golfing in esolangs, but I don't see any way to just simply add a language. I have an interpreter, how can I add it as a language? Everything I've found has either been about changing python interpreters, or integrating autocomplete, eslint, etc. etc. which I don't need for writing brainfuck or golfscript.
I don't want to create a vscode extension just to avoid manually running it with the interpreter from the terminal.
I did get it working by changing the interpreter and extension for a language I do not use, but that is a very stupid solution.

How to make terminal minimal Vs Code?

I am trying to make terminal interference minimal by removing element I don't need. I am beginner in programming.
I want to remove the highlighted part.:
I am using coderunner and C/C++ Compile Run. I lloked for this on google and but Code-runner: Clear previous output, it does not work for me. Also is there any way I can clear terminal automatically when running the code using ctrl+alt+N instead doing it manually?
If I can't do this in powershell is there any other shell which give this functionality?

How can I run Scheme on Visual Studio Code?

I'm wondering how to run simple Scheme code on Visual Studio Code.
I've installed an extension called Scheme, but what is the next step..
I didn't find any details on the extension about how to run the code or the developer's contact ...
Compiling Scheme on VSCode is quite easy by now.
Install the Code Runner extension.
For setting it up:
Open User Settings (ctrl + , by default)
Search for Code-runner: Executor Map By File Extension.
Press "Edit in settings.json"
Add the following:
"code-runner.executorMapByFileExtension": {
".scm": "racket"
}
Run the code directly with ctrl + alt + n or from the Command Palette (ctrl + shift + p) with Run Code
From looking at the github source it seems it only provide basic syntax highlighting support. Thus VSC is slightly better than Notepad, but not much.
To run you need to start one of the available scheme systems and run the file. It might be a way to do that from VSC, but it's not included in the extension.
I would have opted for DrRacket which is a IDE and an implementation of many Scheme standard languages. It can help you expand macros, debug and profile your code in the same place. Another great alternative is Emacs, but it requires a little more effort to set up. I have yet to hear about other alternatives.
If you just want to use VS Code because it's a good IDE (better than DRacket in terms of completion (parens, etc) and code navigation, I just discovered scheme on repl.it.
Doesn't appear that you can debug in Scheme. But it's a good start. (I'm getting the csi error as well).