Born and raised in Binscarth, Cody is the son of Pete and Sandra McLeod.
Cody played one season with the Manitoba Junior Hockey League in 2000—2001,then spent 4 years with the Western Hockey League’s Portland Winter Hawks, where he amassed 31 goals and 195 penalty minutes in 2004—2005.
Cody split his first pro season between the San Diego Gulls and the AHL’s Lowell Lock monsters. July 6, 2006 the Colorado Avalanche signed him as a free agent. December 19 at Anaheim, Cody made his NHL debut. On December 27, 2007 he scored his first NHL goal against the Detroit Red Wings.