Depends on the connector being used - but it's also a trial & error thing.
I forget the terminology, but there are connectors that you push the wires through, and the crimping of the connector cuts them to length. Easier to work with longer wires.
Others require them to be the right length (for the most part) ahead of time, which make it much, much tougher to work with.