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
1 answer

Changing java build location in VSCode (code-runner)

Hopefully a simple question with a simple answer! All I'm trying to do is separate a .java and .class files; I'm compiling using code-runner and have not found a way to change the default build location (same folder as .java files). I've tried…
0
votes
1 answer

Run a program on cmd right after compilation (Code Runner plugin on vscode)

I installed Code Runner to compile my C code. I want the .exe will be directly opened on my cmd after compiling the program like the way Visual Studio is working. How can I do that?
user12695014
0
votes
2 answers

Code Runner using MSVC create a too long string

I use CodeRunner for VSCode on Windows, so I need to change g++ to MSVC (Visual C++ Compiler). So I configure settings.json for coderunner: { "window.zoomLevel": 0, "code-runner.runInTerminal": true, "terminal.integrated.shell.windows":…
Mikhail_Sam
  • 10,602
  • 11
  • 66
  • 102
0
votes
1 answer

Visual Studio Code - Code Runner : 'python' is not recognized as an internal or external command, operable program or batch file

I have installed Visual Studio Code (VSC) and Code Runner. When I use the terminal to execute my code it works fine and I get the results in the terminal window: However, when I try to use Code Runner's keyboard shortcut Ctrl+Alt+NI keep getting…
Programming_Learner_DK
  • 1,509
  • 4
  • 23
  • 49
0
votes
1 answer

How to fix Code Runner plugin in VS Code for Miniconda using?

Recently I decide to install Miniconda on my MacBook. The first problem I faced with was "(base) environment" that Miniconda activated each time as I opened a terminal. So, I disabled this option by command: conda config --set auto_activate_base…
0
votes
3 answers

Code Runner not working with files that I have saved

I recently installed the extension Code Runner in VS Code. I was testing it out in an untitled file and everything was working perfectly. However, when I saved the file and tried using Code Runner I start experiencing problems. It will run once and…
0
votes
1 answer

Is there a way to configure my code-runner to set my Python interpretor from my conda? I am using a virtualenv from conda in the VSCode terminal

Am trying to find a quick keyboard shortcut to execute Python scripts on VSCode while using conda virtual environment on a Mac. I have not been able to find the settings of code-runner to do this.
0
votes
4 answers

JDK 1.8 not supported by vs code?

Does VS Code (code-runner extension) support JDK 1.8? In the morning I was using JDK 12 , but then I downgraded to JDK 1.8 to try out applet viewer and stuff. Unfortunately now it doesn't even highlight the code. Someone please tell me the problem…
user11555625
0
votes
0 answers

Code Runner in VS Code Not Recognizing Beautiful Soup as a Module

I'm doing a basic document summary and I'm using BeautifulSoup to parse the document in VS Code. When I run my code in Terminal, it runs with no errors. However, when I use Code Runner to get an output, it returns the error, "ImportError: No module…
NElise
  • 55
  • 1
  • 7
0
votes
0 answers

CS-Script is busy despite not running anything else?

I'm running Visual Studio and CSScript. My program is extremely simple. using System; namespace HelloWorld { class Hello { static void Main() { Console.WriteLine("Hello World!"); // Keep the console window open in debug…
jamesfdearborn
  • 769
  • 1
  • 10
  • 26
-1
votes
0 answers

more time taken to run code while online in proxy internet. i want to turn of internet sync if it is there

When I'm online it takes time to run code but when I'm offline code runs instantly I have already turned off setting sync. My internet has high latency, is there way to turn of possible code sync in vscode
-1
votes
1 answer

Why is Code runner renaming my file to "tempCodeRunnerFile.java"? (causing "error: class X is public, should be declared in a file named X.java")

I have some problems with Visual Studio Code. I am using the Code Runner extension and Java for Multithreading and Multiprocessing training... but VS Code won't run my code. Important: The name of the file is Main.java , the same of the public class…
-1
votes
1 answer

VS Code updates the code only after compiling twice

I'm having a problem with updating my C code on VS Code(version 1.77.0) and/or Code Runner extension for C language. The issue is that I have to run or recompile the code twice to get it up-to-date after modifying anything. The program is to append…
-1
votes
2 answers

How to Show Code Runner Shortcut In VS Code

How can I show the Code Runner shortcut in Visual Studio Code if I mistakenly hid it?" I was using Visual Studio Code and I accidentally hid the Code Runner shortcut. Is there a way to show it again? I have tried searching in the keyboard shortcuts…
-1
votes
2 answers

Couldn't compile java in vs code

I am not able to run java in vs code [my code] public class hello { public static void main(String args[]) { System.out.print("Hello World") } } . I don't even have an option of run code in terminal in my settings..It is not…
1 2 3
15
16