Using the "Pipes and Belts changes" option of Krastorio 2 changes the length of the underground pipes and belts - however if you use an underground pipe connected to a factory building (internally or externally), then the underground length is reset to the default of 10 for that connection, rather than the extended value of 20.