update project setting and format code