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

Error in terminal when trying to run code in VSCode

I'm relatively new to using IDEs and recently started using VSCode for class. I'm using the Code Runner extension and working on a Mac. Whenever I go to run a piece of code I receive the following message in my terminal: The default interactive…
0
votes
1 answer

How to run Python scripts in Visual Studio Code with Code Runner in a Windows command prompt while showing errors in integrated panel?

By default, running a .py file through VSCode Code Runner executes the program in the VSCode integrated terminal: I would like it to do exactly what it does in the integrated terminal, but launch the code through a separate Windows command prompt,…
0
votes
1 answer

TCL/TK Wish can't find file in the same directory

I am trying to write a TCL/TK Script that accesses an INI File with the command [::ini::open DBW.ini]. I am using the inifile package for this and am trying to run on wish for the gui. However, wish answers with "couldn't open "DBW.ini": no such…
0
votes
1 answer

How to only run JS file with the code runner extension

I'm wanting to start to use JS in VS Code, so I installed the code runner extension to help me out. But I have a problem when I run a python it wanted to go through the code runner extension and not that python extension that I already have…
0
votes
1 answer

C++ - running on VS code with code runner

I am trying to compile and run C++ programs on VS code. I have my compiler set up, and I am trying to use the terminal for taking the user input. I tried to change the settings config for code runner by updating the "code-runner.runInTerminal":…
0
votes
1 answer

enabling pthread on vscode using code runner extension on linux wsl?

I have encountered an error on Linux while using Posix threads with Code runner on VS Code- an error of undefined reference to pthread_create();
0
votes
1 answer

No module package found error in VS Code Output tab

The problem is I have installed virtual environment and code runner. Installed all the packages required. When I run the file by code runner it does not detect package but run Python file detects package and does not give error!
0
votes
0 answers

!MODULE NOT FOUND" When running node index.js w/npm

I've borrowed a code off Github, but when I try to run the code, this error comes up: Error: Cannot find module 'C:\Users\Ihate\Desktop\hashlips_art_engine/node_modules/sha1' - C:\Users\Ihate\Desktop\hashlips_art_engine\index.js at…
Mr. Slime
  • 11
  • 2
0
votes
2 answers

VS Code extension "Code Runner" does not include on Ubuntu Linux

When trying to compile C code that includes math funcions like sqrt or pow terminal displays this error: This is the code: #include #include void main() { int x1, y1, x2, y2, dx, dy; float c; printf("\nUpisite koordinate tacke…
Vukašin
  • 17
  • 8
0
votes
0 answers

VS code-runner:Main method not found in class,please define the main method or a JavaFX application class must extend javafx.application.Application

hope you doing great. So,I've been newly coding java on vscode using code-runner extension and i've encountred an issue: Main method not found in class MultiplyFun, please define the main method or a JavaFX application class must extend…
0
votes
0 answers

Running a .js function in VSCode using Code Runner and getting ReferenceError: is not defined

To preface, I am pretty new to Javascript. What I'm trying to do is run a function from Visual Studio Code so I can have a quicker code -> test workflow. The code in question is part of a larger application. I installed the extension "Code Runner",…
0
votes
2 answers

How to remove the file path from the Code Runner (VS Code extension) run command for C#?

When using the VS Code extension Code Runner for my C# .NET 6 console app, after hitting the run button, the following command runs in the terminal: ❯ dotnet run "/home/USER/code/c#/MyApp/Program.cs" Hello, World! ~/code/c#/MyApp ❯ I am wondering…
0
votes
0 answers

VS Code(Code Runner): Accept user input for c program

I'm testing c program on Visual Studio Code in Windows. I have installed the extensions in the Visual Studio Code: C/C++ from Microsoft; & Code Runner. I have written a c program that will take two numbers as input from the user and print the sum as…
Yash
  • 57
  • 1
  • 10
0
votes
1 answer

How to change language syntax highlighting without affecting run option?

I use the .pyde filetype to make processing.py code, it's jpython so basically it's typed the same as Python however needs a different command to run than python. However every time I set the language mode to Python it changes the command to run,…
Ganer
  • 11
  • 2
0
votes
3 answers

Is there an option to run the code on VS code

I used to work in PyCharm, but recently started working with the Visual Studio Code Mac version. I faced a problem after using pycharm. I downloaded the code runner extension, but still, it’s not good. When I hit the run button, it runs not the last…