Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Sep 29 07:30
    thomas-saigre opened #678
  • Sep 28 16:06
    yankfy commented #162
  • Sep 28 10:20
    Alex-Khouri edited #535
  • Sep 26 15:09
    EduardoPessanha opened #677
  • Sep 26 07:48
    paolotormon commented #286
  • Sep 26 07:45
    paolotormon commented #375
  • Sep 26 07:44
    paolotormon commented #375
  • Sep 24 08:20
    Pankajbaliyan commented #634
  • Sep 24 05:47
    82318179 opened #676
  • Sep 23 19:02
    jiacheng-0 commented #634
  • Sep 17 22:53
    Shababsoft edited #675
  • Sep 17 22:51
    Shababsoft edited #675
  • Sep 17 22:51
    Shababsoft edited #675
  • Sep 17 22:51
    Shababsoft edited #675
  • Sep 17 22:47
    Shababsoft opened #675
  • Sep 17 07:49
    Moses-dot1 commented #268
  • Sep 16 10:43
    Luck19921 commented #393
  • Sep 16 10:42
    Luck19921 commented #393
  • Sep 14 08:36
    DanTup opened #674
  • Sep 12 03:19
    Dgarzona16 opened #673
Probably some PATH-related things with respect to VSC/Code Runner
What I meant was to delete the folder "Extensions", it has nothing to do with deleting or unistalling the extensions from inside the App, that doesn't work, at least for me. Close the App and then go to "C:\Users\user\ .vscode\Extensions" and then delete that folder. Start the App .... You will have a "virgin" App.
Trying to run a packaged java program results in an error finding the main class, this is because the default executorMap is cd $dir && javac $filename && java $fileNameWithoutExt Meaning it is trying to run java $fileNameWithoutExt from the package directory when it should be running java packageName.$fileNameWithoutExt from the parent directory, I have made a temporary fix of cd $dir && javac $fileName && cd .. && java packageName.$fileNameWithoutExt Though this requires me to manually update the packageName portion.
Anyone have a better method of fixing this or is my best bet to create a custom parameter of $packageName?
Hello, I cant seem to find a way to add command-line arguments when trying to run a C program. Can anyone point me to the right direction? Thanks.
Kyle Ruzic
When I run a python program with code runner then CTRL+C to kill it midway through I am left with a "" that usually has a single character in it
This makes so I have to go and manually delete that file before I can run a python file again
why is this
Hi guys, may i ask a question? I want VSCode to compile & run C files, but no matter what I do I must use Code-Runner et similia, but by using these extensions I can't see my variables and use breakpoints.
Do you know a possible reason & fix?
Matt "Shparki" Murray
Hey, so I am super frustrated by this at this point, but for some reason code runner has just all of a sudden stopped clearing the console when it runs. This is a minor issue but I have not changed anything settings wise. By this point, I have uninstalled it and reinstalled it, used older versions, changed my default console, and nothing is working its still not clearing even when the setting is marked.
Jun Han
@shparki Have a screenshot? Then others may be possible to help you.
Matt "Shparki" Murray
Matt "Shparki" Murray
without any terminal activated
First coderun
Second, and then everything after this just repeats
Here are my settings
Jun Han
@shparki Seems to be a bug: formulahendry/vscode-code-runner#572
Please add input support to code runner!
Jun Han
@Gsbhasin84_gitlab Already support: formulahendry/vscode-code-runner#91
Renato La Laina
Hey friends! how can i set to automatically close first instance of Code Runner, and run a new one? For python.... i want to build a new instance, without manually close the last one
i have node js installed in my machine, but when I try running the JavaScript using code runner it says 'node' is not recognized as an internal or external command,
operable program or batch file. Can some one please help ? thanks
Great thanks @formulahendry
Viresh Gupta

Is there a way to provide terminal input from a comment?
For small scripts that take an input I'd like to be able to reuse same input again and again

Something like

Raul Chiarella
How do i ignore extensions?
I don't want to run .py using Code Runner because it does'nt recognize ASCII

vcpg with VScode and CodeRunner directory path issue:
I installed the C++ boost library using vcpg.
Now all the squiggles marks have disappeared in my VS Code document. So the path should be recognized by VS Code.
However, when I run my cpp code in VS Code using Code Runner (0.9.16), I have the following message:

Mycode.cpp:8:11: fatal error: boost/iterator/iterator_facade.hpp: No such file or directory
8 | #include <boost/iterator/iterator_facade.hpp>
| ^~~~~~~~
compilation terminated.

How should I configure Code Runner (or else) so it finds the correct path?

@SABERGLOW totally new to this extension. trying to set it up for C++.

what exactly do i need to add into my settings.json file?

currently i have tried these 2 settings:

//"cpp": "cd $dir && g++ -std=c++14 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"


    "cpp": "cd $dir && g++ *.cpp -o $fileNameWithoutExt && $fileNameWithoutExt.exe"

g++: error: 2: No such file or directory

Batakrishna Sahu

Hi, first of all, thanks for this great extension.
I am trying to set up a custom shortcut to execute the current file. I referred to #92 and this is what my keybindings.json looks like:

        "key": "ctrl+\"",
        "command": ""

This doesn't seem to work. It works when the key is set to ctrl+alt+k etc. But not for ctrl + \" or ctrl+alt+\". Any ideas?

Thanks :)

Rafli Athala Jaskandi

Hello everybody, I got some trouble here
Since yesterday at 23 March 2020, my code i compile with code runner can be run only once, when compiled again there a error message like this:
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file Queue.exe: Permission denied
collect2.exe: error: ld returned 1 exit status

And the compiled exe cannot be deleted or even open it, it says that I dont have permission to read it. I already search on google to find the solution but seems I didn't found one. Can anyone help me?
Thank you.

@formulahendry please take a look if you have a time. thanks in advance
Viresh Gupta

Is there a way to provide terminal input from a comment?
For small scripts that take an input I'd like to be able to reuse same input again and again

Something like

Just in case someone else stumbles here on the same problem, I didn't find any useful feature to achieve this.
So, I made an extension wrapping code-runner to deal with this:
'node' is not recognized as an internal or external command,
operable program or batch file.
I see this error
node is installed in D:
hey does somebody know why code runner isn't working if i got a string in my code?
i am using c++
code runner works just fine with everything but if i am using a string in my code, code runner just does nothing
In the header find replace all of the "string" with "std::string"
Liz Kane
I'm new with Visual Studio, I'm using my terminal to create files, but once they're opened and I've written out code I get this error message. "Code language not supported or defined." I'm not sure how to fix this.
Leonardo Luiz Gava
@lizkane222 this should help: formulahendry/vscode-code-runner#147
Krid Heprakhone
I can't stop coderunner (control + option + M) on my macos with latest version of Coderunner
cant find settings for code runner in visual studio code