1.
sudden impulse, momentary whim, spur of the moment
A sudden, unplanned urge to do something, especially something wrong or ill-advised. Often used as an excuse or explanation for impulsive wrongdoing.
Usage
Almost always used in connection with wrongdoing — theft, cheating, lying, or other impulsive misbehavior. Commonly used as a partial excuse: 出来心で… (it was just a sudden impulse). The phrase implies the person didn't plan the action in advance.
Common collocations
Etymology
出来 (occurring) + 心 (heart/mind) — a feeling that suddenly arises.