New c sharp script not valid in intellisense Because if you create new c# file in vscode, it will not be load. Go back to Unity and let it compile, then intellisense works fine.