A man, registered disabled, who broke into Preston Car Sales trying to steal a car later ram raided a nearby garage with a stolen Volvo.
Exeter Crown Court was told that Anthony Moss had broken into Preston Car Sales at Paignton on October 27 to steal car keys.
Police attended and found him hiding behind a vehicle on the forecourt, with the keys in his pocket.
Although released by the police pending the investigation, Moss then stole a Volvo around two weeks later and used it to ram the shutters of a nearby Shell Garage.
Although he failed to get in, it caused £5,000 damage, the court was told.
Moss, aged 44, of St Paul's Road, Paignton, committed the burglaries, while he was already on a suspended sentence for assaulting a security guard, because he was desperate to feed a heroin habit, Devon Live reports the court being told.
He admitted burglary, aggravated vehicle taking and attempted burglary and was jailed for two years and one month at Exeter Crown Court.