Can't write anything in the scripts.Does anyone know how to fix the problem

It might be that your Visual Studio IntelliSense is not working properly. Try the steps from here to fix your issue: Intellisense Not Working with Visual Studio (Fix)