AI models, powered by large language models, excel at learning code style by identifying statistical patterns and idiomatic expressions directly from concrete examples, effectively capturing subtle nuances and 'tacit knowledge' that explicit, rule-based style guides often miss.