This question already has an answer here:
Currently building a new mountain bike. I'm fairly bike savvy and have built quite a few bikes over the years, but mainly road bikes.
I have installed/fitted a new Shimano slx group set and the hydraulic brake housing is very long. Lots of excess brake line around the handlebars, and when looking at other bikes in the shop they don't seem to have that problem. I'm fairly sure you can't shorten the housing, and not sure I want to have a crack at that if that is the case, so I wanted to see how other people get around this problem?