Is there a tool for drawing dotted/dashed line ? or like a preset or something?

Please let me know is there a way to do that. Thanks so much!!