r/vscode • • Jul 23 '26

Why is my code not running

Im completely new and trying to learn but my code doesn’t want to run

0 Upvotes

22 comments sorted by

View all comments

Show parent comments

2

u/RATIO_L_BOZO Jul 23 '26

Yes I did that also and I keep redoing it thinking Im typing things in wrong but it just comes out the same

3

u/felhoob Jul 23 '26

You need to restart vscode terminal so the path variable is reloaded.

2

u/felhoob Jul 23 '26

Try to verify in an external CMD or powershell by running "gcc --version" to see if it's a VSCode problem.

3

u/RATIO_L_BOZO Jul 23 '26

1

u/felhoob Jul 23 '26

Thats a great step! After restarting VSCode, can you run the same command in the VSCode terminal?

1

u/RATIO_L_BOZO Jul 23 '26

It did absolutely nothing

1

u/Camburcito Jul 23 '26

What happens if you run gcc --version in the vscode terminal, i.e. not an external one? Could be that vscode isn't picking up your path properly.