To be honest i forgat to mention that I disabled The Realtime Protection just to make sure thats not the problem and it still doest the same. Thanks for suggestion.
Also it doesnt help with the main problem that is saving the file, the cpp or h file after I finish editing it.