Automatic code formatting