How To Disable Automatic Product Code Generation When Making New Variations?

Hi, I wanted to ask which file I need to edit to disable the feature that automatically generates a product code for a variation when they're created. Thanks.