When do controllers assign a squawk code to VFR aircraft in Canada?
The controller will assign you a squawk code if they want to differentiate your radar return from other aircraft. It has nothing to do with whether you're getting flight following or not. If they're happy they know which blip is you for the length of time that they'll be watching you, then they may not give you a squawk. In some airspace, the moment you begin talking to them then they'll give you a squawk. All depends.