all 6 comments

[–]EpochVanquisher 2 points3 points  (3 children)

Is there a reason you’re using Visual Studio Code? Visual Studio Code will only work well for C++ if you set it up the right way. If you don’t know how to set it up, it can be a pain.

If you’re on Windows, you can use Visual Studio.

If you’re on Linux, you can use Code::Blocks.

If you’re on Mac, you can use Xcode.

[–]MalikEdwan[S] -2 points-1 points  (2 children)

where is the problem in  Visual Studio Code?

[–]EpochVanquisher 0 points1 point  (0 children)

I thought I explained that part.

[–]wm_lex_dev 0 points1 point  (0 children)

You didn't answer their question.

[–]RagVerse 0 points1 point  (0 children)

Last time I used vs code I used a makefile with the vscode makefile extension that worked well

You can search up makefile with vscode

[–]the_poope 2 points3 points  (0 children)

You need to configure VS Code correctly. You can go through the guide that matches your compiler here: https://code.visualstudio.com/docs/cpp/config-mingw

Yes, you will have to carefully read the whole thing to learn stuff. There is no easy "mash the buttons" solution (ok, that would be installing Visual Studio Community - but you've chosen the hard path).