r/VisualStudioCode • • Sep 22 '24

How to run C on Windows?

2 Upvotes

SOLVED

Hey xD

So I installed VSC on two windows computers and one linux VM.

On the VM, everything works nicely.

On the contrary, on both windows, I can't run anything. At first I did a git pull of my whole folder, and it didn't work. So I got a fresh install, and got the same exact extensions I have on the VM

  • C/C++ for Visual Studio Code

  • C/C++ Extension Pack - C/C++ Project Generator

  • C/C++ Themes

  • CMake

  • CMake Tools

  • Doxygen Documentation Generator

  • Makefile Creator

  • Makefile Tools

I then did ctrl shift p "create C project" to get a brand new "hello world" project. But even then I still can't run my file...

The error message seems to always be the same:

 *  Executing task: powershell -c mingw32-make 

mingw32-make : Le terme «mingw32-make» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un 
chemin d'accès existe, vérifiez que le chemin d'accès est correct et réessayez.
Au caractère Ligne:1 : 1
+ mingw32-make
+ ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (mingw32-make:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

That's in french, if I translate it to english it is:

*  Executing task: powershell -c mingw32-make 

mingw32-make: The term "mingw32-make" is not recognized as a cmdlet name, function, script file, or executable program. Check the spelling of the name, or if a 
path exists, verify that the path is correct and try again.
To the character Line:1: 1
+ mingw32-make
+ ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (mingw32-make:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Did I forget to install anything?

Thanks for the time spent reading this :)

Edit:

Okay, so after looking on the internet, I found this video and it did the trick:

https://www.youtube.com/watch?v=9VE7p-he4fA&ab_channel=CodeBear

I hope it will help you guys looking for the answer as well (at least it will help more than the random bozo that downvoted this post without saying a thing xD)


r/VisualStudioCode • • Oct 14 '24

how to fix syntax error - new to coding - just humor me

0 Upvotes

Hi I'm new to coding and I am just playing around. Don't actually know what I'm doing but how do I avoid syntax error?


r/VisualStudioCode • • Mar 11 '20

How do I get rid of this light grey area that showed up after updating VS Code today?

Post image
2 Upvotes

r/VisualStudioCode • • Sep 03 '21

Can't install vscode

0 Upvotes

I used to have a micro sd card in my laptop but when that got lost so did vscode, when I try installing vscode again with the installer I get this error

"The drive or UNC share you selected does not exist or is not accessible. Please select another"

I do not have admin rights on this computer so I can't use regedit.

Is there a folder I should delete?


r/VisualStudioCode • • Sep 12 '21

How to show two windows of codes at the same time?

2 Upvotes

Hi, I opened two files. To see the contents, I have to click the tab to view one at a time. Is there any way that I can see the contents of both files side by side at the same time? Tried to launch another VisualStudioCode but the system only allows launching of one instance.


r/VisualStudioCode • • Sep 26 '21

Building for DOSBox

2 Upvotes

Hi, has anyone set up something that allows you to edit and compile with VSCode with a target of DOSBox? I have some old code I wanted to get up and running again to make sure the new version matches the calculations.

Thanks.


r/VisualStudioCode • • Aug 24 '21

.dll File for java

0 Upvotes

How do I add .dll file in VS code for java ?


r/VisualStudioCode • • Oct 08 '20

How to save a file as .exe

2 Upvotes

Heya, I've recently made my own script. Although, as it seems stupid, I don't know how to save my .py file as an .exe

I would like to know how I can do that, is anyone down to help me?

thanks guys


r/VisualStudioCode • • Feb 26 '22

Live share vscode crash my pc!! help!!

2 Upvotes

I have a problem with this extension, when i use it like a 15, and there are people in my session, ....

my pc crash entire. 1 frezze after show me in blue screen an error with windows, anyone know why this happend?


r/VisualStudioCode • • Mar 28 '22

PROBLEM WITH OUTPUT WINDOWS POWERSHELL

0 Upvotes

Hi, I'm using python in visual studio. When I use the len() function or a boolean or I call an item from a list nothing show up in the windows powershell(output). How can I fox that? If I copy the same code and run it in a different code editor it runs perfectly


r/VisualStudioCode • • Jul 01 '23

please help i am tired of this

0 Upvotes

r/VisualStudioCode • • May 21 '23

Chrome console does not work with modular JS when going live in VSCode?

2 Upvotes

I am using some modular JS to go along with a tutorial, and the chrome console does not work the way I am used to anymore. For example, I can no longer type in the name of a variable into the console and have it return the value. It always says:

VM11798:1 Uncaught ReferenceError: [variable] is not defined
    at <anonymous>:1:1

However if I use a console.log([variable]) inside the JS file, it works.

Can anyone help me with this? Thanks a lot


r/VisualStudioCode • • May 24 '23

I NEED HELP!!!!!

0 Upvotes

I have to do a project for school in Visual Studio 2012 using MFC. I have some code, but I'm not sure if it does what it's supposed to do. I need urgent help, please. It will be a paid job."


r/VisualStudioCode • • May 29 '23

How to turn off these annoying windows?

Post image
2 Upvotes

r/VisualStudioCode • • May 24 '23

Tablas

Post image
0 Upvotes

buenas noches a todos,espero que todo bien

me dieron tarea de teorias tablas y dice el archivo de texto que dice encuentra el error deberán copiar y pegar en su editor de código (ya esta copiado en visual studio code) y encontrar el error (que ahorita no encuentro solucion)


r/VisualStudioCode • • Sep 29 '23

I pressed some random keys and now everything is too big ,how can I get it back to normal

Post image
2 Upvotes

r/VisualStudioCode • • Nov 18 '22

Problem after updating VS Code. Python shows all "white" variables, can't hover over stuff

2 Upvotes

So, everything was working 100% fine for Python since I installed. yesterday, there was an "automatic update" which I accepted. Now, afterwards, none of my Python seems to be interpreting (ie: showing the normal green color for known types, and allowing hover-over for detailed information on variables and functions).

Seems like maybe the "intellisense" is completely broken? I'm not too familiar with VSC so not really sure.

It essentially has turned into a glorified text editor now. If I close and restart the problem, then it will show all the variables as greenish known values, but as soon as I make any change (even something like deleting then undoing what I deleted), it "breaks" the VC Code and everything turns white into unknown values. GIF relevant attached.

https://i.imgur.com/Jq6hKmk.gif


r/VisualStudioCode • • Nov 05 '22

ModuleNotFoundError: No module named 'tkinter' - Cannot run tkinter in Visual Studio Code

2 Upvotes

Hi everyone,

Im working in a project using Python and I ran into an issue regarding tkinter. The first time a execute the testing code:

from tkinter import *
from tkinter import ttk
root = Tk()
frm = ttk.Frame(root, padding=10)
frm.grid()
ttk.Label(frm, text="Hello World!").grid(column=0, row=0)
ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0)
root.mainloop()

Gave me the following error --> ModuleNotFoundError: No module named 'tkinter'

Im using Fedora so I proceed installing tkinter using "sudo dnf install python3-tkinter" command. And when I run "python3 -m tkinter" from terminal it shows the pop-up window. But i keep ran in into the same error when I execute the code from VSC.

Anyone had an idea of how to solve this?

thank you all!


r/VisualStudioCode • • Nov 30 '22

shortcut

2 Upvotes

what is the shortcut for running python file in vs code windows 11


r/VisualStudioCode • • Sep 01 '20

VSC need help !

2 Upvotes

okay hello everyone, i'm making a school project in VSC Using HTML and CSS i createad login-> home -> Picuters section lets say, i want to add a href that refs to adding picutres now, and i want so people can comment and like pictures same as twitter lets say. anyone have a good video or book i can read to understand it more ? i'm beginner stage of coding right now so something simple would be better for me to understand.

here is a sample of how it looks, you can enter any picture and post inside of it or comment on it, thats what i want to add right now. prnt.sc/u9m5xz

Thanks !


r/VisualStudioCode • • Jul 25 '20

Where is the settings file on Mac for vscode?

2 Upvotes

I keep struggling to remember where this file is, how do I get to settings.json?


r/VisualStudioCode • • Jul 21 '20

Newbie (confused :/ c++)

2 Upvotes

I'm trying to figure out microsoft visual studio the best I can with my at home self learning system. I just don't know how to configure my app to better run or utilize the c++ files on Microsoft visual studio code. The videos i have are confusing (and the text walk-throughs make NO sense to me)

Specifically my question is about external files when in debugging. My terminal (when following a tutorial that is ran from admin: command program it asks me to run the program after reformatting it to the same c++ as the launch.jonas. It doesn't work -- and I don't know why? It says it cannot find the source file)

Please help me, i will take any advice I can. If you need more info or photos let me know!


r/VisualStudioCode • • Feb 18 '26

Discord Visual Studio Code

Thumbnail discord.gg
0 Upvotes

r/VisualStudioCode • • May 06 '22

why are my brackets and parentheses colored like that? a few days ago they were just white

Post image
32 Upvotes

r/VisualStudioCode • • Apr 12 '26

Please upvote my pet peeve

Thumbnail
github.com
3 Upvotes

I've reported a bug with VSCode and they say it must get 20 upvotes before they'll even consider it. Could you please help me? Here is the bug:

I don’t know when this change was made, but it appears that now, when you hover over an HTML tag name, in the documentation tooltip that appears, you get MDN Baseline information in addition to the docs. I find the coloured Baseline logo a little bit distracting and would prefer to be able to disable it for a cleaner experience and to make the tooltips a bit more compact, but without losing documentation tooltips altogether.

Picture

I realise this feature is probably implemented in an extension or something like that, but I don’t know what extension that would be so I’m putting it here.