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

Auto input in VS code terminal from input.txt whenever compiled

Generally we need to type the input after running any file where we have std::cin, like the c++ code in below int M,N; cin>>M>>N; int i,a[M],b[N]; for(i=0;i>a[i]; } for(i=0;i
0
votes
0 answers

My code stops running at the cin statement (VSCode Code Runner EXT)

Whenever I try to use this extension to automatically run code for me, it stops at the std::cin statement and doesn't let me input anything. For example: #include int main() { int num; std::cout << "Enter a number: "; …
Chaldo
  • 3
  • 3
0
votes
0 answers

VScode delayed output

The word "delayed" didnt really exactly describe what my situation bumped up with. I was starting practicing with C++, and using Terminal along with Code-runnder extension as the compiler. The beginning program was just that simple: #include…
0
votes
0 answers

I am able to run code by code runner in VSC. What shall I do?

I am not able to run the code runner in VSC (Visual studio Code).
0
votes
1 answer

VSCode Code Runner not activating virtual environment at the first run, but works for subsquent runs in the same terminal

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 PS D:\Python_Workspace\Password Manager GUI> python -u "d:\Python_Workspace\Password Manager…
0
votes
0 answers

VSCode Code Runner is faster than running the code directly on my Linux terminal

I have this basic CSV search substring algorithm that I am working on and I am measuring the performance between running it on my raspberry pi 4 terminal vs doing it on CodeRunner. My CodeRunner is running much faster than doing this in terminal…
0
votes
1 answer

Where is std::cin when std::cout is going to the "Output" pane of VSCode

When I do a "Run Code" command in Visual Studio Code in Windows (it's the first option when I right-click in the editor), the std::cout output goes to the "Output" pane of VSCode. But when this happens, where is std::cin? You can't type in the…
AJ Biffl
  • 493
  • 3
  • 10
0
votes
2 answers

How do I get Visual Studio Code to include non-standard libraries with angle brackets <>?

I am trying to run a program using the ArduinoJson library with the VSC extension Code Runner but I cannot compile it. There are no markup errors or warnings in VSC but when I try to run this snippet: #include…
0
votes
2 answers

C++ not running in vs code

I am trying to run my C++ code in vs code. I have installed global extension for C/C++ by Microsoft and also code runner extension. When I run my code it shows this in the terminal. user@LAPTOP-7LH95TTK MINGW64 ~/Desktop $ cd…
Rohit Bhati
  • 11
  • 2
  • 4
0
votes
1 answer

database in c++ with sqlite3

I am working on my coursework for my university. It consists on making a database in c++. I have those errors from Monday and I can not solve them. Can anyone help me to fix this issue, please? I am working in VSCode and I am a beginner in c++,…
0
votes
1 answer

VS Code: Code Runner extension - Run button behaviour under Python

When using with JavaScript, clicking the Run icon simply runs the code. But under Python, when clicking the button, instead of directly running the code it opens an option menu to choose: 1. Run Code, 2. Run Python file in terminal. Is there a way…
0
votes
2 answers

Not able to find run option in C++ - VS Code

I recently started programming in C++ in VS Code. I am not able to find the run option to run my code, neither in the menu that shows on right-click, not the Code Runner Run button on the top left. But if I make a python file (.py) surprisingly I am…
0
votes
0 answers

Undefine reference to "function()" (vscode)

So I am developing a project and I am almost at the end. I am working with 3 files: main.cpp, game.h, game.cpp . I used header files because it was told to me that it was good practice. However, I am having some issues and problems compiling and…
0
votes
2 answers

how to clear screen after taking input from user in C++?

I have tried using: cout<<"033[2j\033[01;1H"; I don't understand what it did to the terminal. Output: On the terminal cout<
1ann0x
  • 32
  • 7
0
votes
0 answers

Run multiple files with vs code runner

I want to compile and run multiple .cpp or .hpp files with Code Runner. Is this possible and if so, how?
Paul02
  • 18
  • 2