Jump to content

i am using recently the code runner names extensions to quickly open the terminal window inside the vscode app and run the c programm that i mad. but it seems like whenever i use scanf or any other functions or statements like if else or nested if else the extension is unable to execute the code. but if manually use the gcc command to compile and make the .out (executable) code the code runs fine without any error.

anyone saw similar behaviour with the extension as me? share your experience if you are using the extension.

 

Link to comment
https://linustechtips.com/topic/1400814-extension-in-vscode-problem/
Share on other sites

Link to post
Share on other sites

The result of code runner should show in the code output tab (Ctrl+Shift+U)

What is shown when you are running code runner (Ctrl + Alt + N).

 

Code runner should output command similar to this

[Running] cd "/full/path/to/project/" && gcc filename.c -o filename && "/full/path/to/project/"filename
... output displayed here ...
[Done] exited with code=0 in x.xxx seconds
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×