The “arrow” style component has the ability to include dimension information automatically.
To use it, draw a line, then in the Style tab, add an ‘Arrow’. Set options for that including dimension. Once you’re happy with the appearance you want, save the style in your collection. Now you can apply that style to any lines you draw whenever you want, and it will automatically display the length of the line.