I am trying to run gfortran compiler within terminal in visual studio code, but the gfortran compiler is not recognised. I tried running the same compiler in powershell externally and it works fine (As shown in the picture below, I havent given it a file to complile however, but note the error codes are not the same).
I have made sure all the baisic mingw packages are installed, and that the /bin directory is added to the PATH environment variable. Not sure what is causing it to not be read by VS Code.