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
-1
votes
2 answers

Constantly getting error "The term 'script' is not recognized as the name of a cmdlet, function, script file, or operable program."

I'm using python 3.10.7 on VS Code and often when I run my files (In the terminal using CodeRunner), it does print the output of the files but just prints the error almost every time and I want to know what it means and what I can do about…
-1
votes
2 answers

Why VScode Terminal show me nothing when I run the python code?

I write and run my code in VScode but it shows nothing in the terminal.
-1
votes
1 answer

Coderunner issues Mac

Please can anyone help me out code runner only shows the right output after running the python file. For example Here I used the option "run python file" in terminal and it worked Then i ran it using coderunner extension and it works But when i…
-1
votes
1 answer

vscode Code Runner cannot run multi go files

For example, I have a simple project called demo demo ├── go.mod ├── main.go └── sum.go Here is the code, for go.mod, you can run go mod init under demo directory to generate automatically(but you can create in yourself to) // main.go package…
Willis
  • 599
  • 3
  • 25
-1
votes
1 answer

Code Runner extension of Visual Studio Code doesn't work when click in "Run Code"

When I click on every button of "Run Code" (top-right of windows or when right-click the code) or even when I type the key shortcut "Ctrl + Alt + N" (which is defined in settings) VSCode doesn't do anything, doesn't show any error but also doesn't…
-1
votes
1 answer

code runner cannot find java files in mac

I have VSCode Version: 1.52.1, macOS Big Sur, Version 11.1. I have the following directory structure: Home > cplus_cplus_projects java_projects python_projects When i cd into Home, i usually do code python_projects to work on…
turtle_in_mind
  • 986
  • 1
  • 18
  • 36
-1
votes
1 answer

VS CODE - Code Runner - Output not working

When I run code on VS Studio Code, instead getting an output in the "Output" I get the output in "Terminal". I used to get it under "Output" before. I am using Code Runner as extension.
Babita
  • 1
  • 1
  • 1
-1
votes
1 answer

Visual Studio Code javac cannot be found or is written wrong

I wanted to know how I can solve this issue. I changed the environment variables to the JDK version I have installed and can check within the command line with javac -version if it is installed and it says yes. Now I don't know how I can fix this…
Dimitri Williams
  • 628
  • 1
  • 6
  • 18
-1
votes
2 answers

Kotlin java.lang.ArrayIndexOutOfBoundsException:448

I am learning Kotlin but my computer so bad to use Intellij. I downladed VSCODE and I followed all steps. I mean Code Runner, Kotlin Language extension and add to path. But when I run to code any code. Like this fun fun main(args: Array)…
user10949197
-2
votes
1 answer

How to use Code Runner extension for JavaScript on VS code

I'm new to programming and I just started learning JS. I tried running my first code via 'code runner' on Visual Studio Code but it wasn't giving me the output. enter image description here
-2
votes
1 answer

I've installed the vs code extension Code Runner to help me run C language programs but it doesn't run my code

#include #include int main() { float a,b; int c; printf("Enter Number a\n "); scanf("%f",&a); printf("Enter num b \n"); scanf("%f",&b); c=a+b; printf("The sum is %d",c); return…
-2
votes
1 answer

Code Runner not executing in windows in git bash

"code-runner.terminalRoot":"/", "code-runner.executorMap": { "cpp": "cd $dirWithoutTrailingSlash && g++ -std=c++14 -O2 -Wall $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt" } These are my settings.json which when i try to run on windows…
-2
votes
2 answers

Is there a way to make the code runner not close the external terminal?

I don't know how to explain it, but I will try. So I write C++ code and I run it with code runner. But the program closes itself. I don't want to use system("PAUSE"); because I need to remove it if I'm in a competition. So is there another way?
Denoic
  • 35
  • 1
  • 5
-2
votes
1 answer

Error when compiling in coderunner vscode

I use Code Runner installed in VS Code to run my C++ code, but it just can't run in c++11 style so it always appears c++11 errors and warnings, how can i do to make it available to c++ 11 ?
-3
votes
1 answer

cplusplus program not working in visual studio code

I am starting c++ in visual studio code. I don't want to use coderunner. So I use task configure it while seeing the official documentation of visual studio code for c++. My file .exe is build successfully on pressing ctrl+shift+b. But on running it…
1 2 3
15
16