Add CSharp mode. Add directory if it doesn't exist while saving.