It’s pretty easy to do if you are using the Drivetrain. It is built into the Devices > Drivetrain configuration.
If you are using VexCode Pro, you can use the following post as an example. It includes instructions for a six motor drivetrain but you can do it with two or four motors by adjusting the motor groups.