I can't modify or write in arduino sketch

Is it because of windows 10?

If your Arduino IDE screen is grey then uncheck File>Preferences>Use external editor

You can try uninstalling the arduino ide and installing it afresh.

It is not because of windows 10. I also upgraded to windows 10 but it is working just as before.

Thank you ALL.