If I'm doing SID or straight lines, I set my machine to a tiny stitch of about 0.5 and do 10-12 stitches before changing to a regular stitch. Same at the end of my lines, then use an easy-thread needle to bury the ends.
For FMQ I do 3 stitches in the same place at beginning and end of stitching and bury tails. Happy quilting