I have just downloaded unity and saw that now it supports Visual studio code, I downloaded it and made it the default editor.
After trying to edit a script, it prompted
For new users who have the same requirement, I'll suggest you to switch to another IDE: Rider, provided by Jetbrains. It's just amazing and less cumbersome than VS Code.