Questions tagged [vscode-code-runner]

Code Runner is an open-source extension for Visual Studio Code. It enables you to run a variety of languages in Visual Studio Code, with support for every popular programming language including both legacy languages and those that have gained popularity in recent years.

Code Runner is a free, open-source extension for Visual Studio Code.

It enables you to run a variety of languages in Visual Studio Code, with support for every popular programming language including both legacy languages and those that have gained popularity in recent years: C, C++, Java, JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, F# (.NET Core), C# Script, C# (.NET Core), VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Visual Basic .NET, Clojure, Haxe, Objective-C, Rust, Racket, AutoHotkey, AutoIt, Kotlin, Dart, Free Pascal, Haskell, Nim, D.

Resources

240 questions
4
votes
2 answers

'runhaskell' is not recognized as an internal or external command, operable program or batch file

I installed Haskell on Windows with these commands: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object…
hussamsindhu
  • 101
  • 1
  • 8
4
votes
2 answers

vscode coderunner has trouble executing java code

I have the following structure: java_projects > chapter9 usually i cd to a directory a level above java_projects, and do code java_projects to create a workspace directory from that location. Now, inside chapter 9, i have the folloiwng…
turtle_in_mind
  • 986
  • 1
  • 18
  • 36
4
votes
4 answers

Cpp in VSCode - How to compile to other folder

I'm using VSCode to program in C++. When I run the code (using the "Code Runner" extension), the .exe file stored in the same folder. I've seen in many projects that they stored it in a /bin folder. Is it posibble to automatically store it in…
4
votes
1 answer

Configure VS Code output window for python to jump to last line of output window?

I am sorry if the question doesn't make sense, I didn't really know how to phrase it properly. What I am trying to achieve is similar to how it works in the command prompt when running a python file. When I run a python file from the command prompt,…
H_Boofer
  • 413
  • 1
  • 3
  • 13
4
votes
7 answers

How to make Code Runner run in external terminal (Command Prompt)?

So, basically the Code Runner in Visual Studio Code can run in the integrated terminal. How can I make it to run in external terminal, which is command prompt because I need to present my program's output to my classmates, so it's not convenient to…
Alauddin
  • 47
  • 1
  • 1
  • 8
4
votes
3 answers

Why does VSCode Code Runner not support f-strings?

I have this issue with VSCode and the Code Runner extension and here is the code snippet causing the issue: class init_error(Exception): def __init__(self, comp="Internals"): self.component = comp self.message = f"Error occurred…
4
votes
1 answer

How to view output of C program in VS Code's integrated terminal while debugging

I have VS Code setup for running C/C++ code using the code runner extension, and everything runs pretty smoothly except for debugging. When I debug the program, the code gets compiled with the built-in build task and not code-runner, and the…
4
votes
2 answers

Visual Studio Code not running Python

I'm using the newest version of Visual Studio Code and Python 3.6 (64 bit) on Windows 10. I have the "Python" extension installed (the one made by Microsoft). Every time I try to run a simple program [e.g., print("Hello, World!")] it says that "The…
Tim.Kaz
  • 43
  • 1
  • 1
  • 5
4
votes
2 answers

C++/G++ including headers from another folder

I have been given a C++ project (for school) that I need to run and add additional code to. I would like to run the project in Visual Studio Code. I have downloaded the C/C++ extension as well as the Code Runner extension. When I try to run the…
4
votes
2 answers

ScriptCS 0.17.01 Error Unexpected named argument

I tried to run my program using Visual Studio's Coderunner extension as well as from terminal with the scriptcs command. My code is as follows: using System; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { …
jamesfdearborn
  • 769
  • 1
  • 10
  • 26
3
votes
1 answer

Special characters like ç and ã aren't decoded when the text is obtained from a file

I'm learning Python and tried to make a hanging game (literal translation - don't know the real name of the game in English. Sorry.). For those who aren't familiar with this game, the player must discover a secret word by guessing one letter at a…
3
votes
2 answers

Code-runner configuration for running multiple cpp classes in vscode

I have a cpp project with multiple classes and headers. I was trying to make it compile and run using tasks and lunch.json but I gave up. I realized that a while ago I had a problem with Python interperter and went to code-runner configuration to…
Payam30
  • 689
  • 1
  • 5
  • 20
3
votes
3 answers

Getting "'node' is not recognized" error when running JavaScript with Code Runner in VS Code

After I installed Code Runner in VS Code then used it to run my JS code, I'm getting this runtime error: 'node' is not recognized as an internal or external command, operable program or batch file. What does that mean?
Gunacelan M
  • 179
  • 2
  • 10
3
votes
1 answer

How do I configure VSC to use coderunner and avoid getting "'scriptcs' is not recognized "

I'm having issues getting CSharp code to run in visual studio using CodeRunner. Anyone know how to fix this error in the attached image? I ALREADY know how to execute the prg using the terminal & DOTNET RUN command but I really would like to use…
myfunnyfella
  • 1,357
  • 3
  • 18
  • 25
2
votes
0 answers

Run python in external terminal in VS Code

I have just installed and set up python in VS Code. I am using code-runner extension to run it but it runs in integrated terminal. I want it to run in external terminal. I know I have to place a statement in code-runner.executorMap because I did so…
1
2
3
15 16