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
0
votes
3 answers

How do I run my code in the terminal in VSCode?

For Details, There are no errors, I use code runner, and the programing language is Python.
0
votes
0 answers

VS Code extension coderunner not working properly on macOS

I am new to programming and wanted to setup c++ on my MacBook Air M1 running on macOS Monterey. I followed some online tutorials to download Homebrew, Mingw-64(using Homebrew) and finally installed VS Code and then installed the c++ extension pack…
0
votes
2 answers

'Code Runner' extension shows "Could not find or load main class" when running Java programs inside a package/folder. (VScode)

When I try to run my Java program through "Code Runner" extension while it is inside a package/folder, it shows error "Could not find or load main class". But if I run same program through marked "Run | Debug" , the programs runs successfully. it…
Mahwar
  • 1
0
votes
1 answer

How do you find the line number of an error in C++ in vscode code-runner?

I am pretty new to VSCode. I use code-runner extension to run C++ program and strangely it does not tell me exactly which line caused the error. How should I know it? For example the error message will look like this /bin/sh: line 1: 87002…
0
votes
1 answer

The following notification pops up when my bash script isn't opened or focused: No code found or selected

How do I resolve this? I read the documentation of the extension and it doesn't say anything about the extension running without having the code file focused. The following is my current settings.json file and I don't know how to make the extension…
0
votes
0 answers

Visual Studio Code- Python- Not resolving multiple input statements

VScode is not resolving separate lines of input statements. It does resolve one input statement, but doesn't work on separate lines Single input statement: a = input("a: ") >>> a = input("a: ") a: Multiple input statements: a = input("a: ") b =…
Jibin
  • 1
  • 1
0
votes
0 answers

How to set it so that "Run Code" always runs code in Command Prompt

The VS Code terminal is so slow. I want to run my code in the Windows Command Prompt. I want to set up Visual Studio Code so that every time I click on the "Run Code" icon (like the YouTube play icon) it runs the code in the command prompt. I'm fine…
0
votes
2 answers

Code Runner in VS Code Not Running Conda Python

I've installed conda and want Code Runner's output to use the conda installation of Python. When I run this code, this is the output I get: It seems like Code Runner is using the non-conda Python, where I don't have the numpy package installed. The…
0
votes
0 answers

C++ unable to find folder/file in #include (SFML)

I cannot find anything that works, and I don't know where to go. The task is quite simple, to just include SFML as a library in my C++ file, but every time I try, I get some sort of error. I am using the sample code from SFML: #include…
0
votes
2 answers

VScode Extension Code Runner not working/error (python) when I run program

When I installed the code runner extension and I can't run the python program this error popped up: Copyright © Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 Warning: PowerShell detected…
0
votes
0 answers

C++ programs not working correctly in VS Code

I deleted the contents of my settings.json file by mistake and after that, all my C++ programs are not working correctly. Here is a code snippet for reference: #include using namespace std; typedef long long int ll; typedef long…
0
votes
0 answers

visual studio code how to run to show the output only

I just download visual studio code to do my college project in C language. I already download all the necessary extensions to run the code but when I want to run the code option only the terminal will send me this PS C:\Users\User\Documents\c test>…
0
votes
2 answers

No output when I run a javascript code in vs code

I downloaded node.js and code runner on vs code. The first time I ran the code there was an output. But when I created a new file and tried to run this piece of code in vs code, there wasn't any output. Normally, there should be an output of "1euro"…
0
votes
1 answer

Why does CodeRunner not recognize my path in VS Code? Using WSL

I'm brand new to programming and I'm getting my environment set up. I'm using CodeRunner on VS Code to get my javascript outputs. In each output though, I'm getting a frustrating…
Alex G.
  • 3
  • 2
0
votes
0 answers

JS is not running on Chrome (use Code Runner on VScode)

I spent a week figuring out how to run JS file on VScode using Code Runner. It works 25% of the time (VS code puts outputs in console). I am also trying to run HTML file linked to JS on Chrome from VScode using Code Runner. It worked so far only…
mossburger55
  • 11
  • 1
  • 2