I am very new to rust, and I was trying to create a simple hello world program. When in tried to run the program in VSCode using rustc main.rs, I got the error "'rustc' is not recognized as an internal or external command,operable program or batch file." Then when I opened a seperate cmd terminal (by typing cd into the search bar), the command worked fine. rustc --version also worked fine in this new terminal. I do have the rust-analyser extension installed. I am on Windows 10. Thanks
I tried to use the rustc command in the terminal inside VSCode but I got the error above.