update setting and snippet