Line instead of author in case of repetition

Dear users, 

I have a question regarding cases where an author is repeated in the bibliography. I am using APA-style and at the moment, the bibliography appears like this if an author appears multiple times:

Doe, John. (2020). Title 1...
Doe, John. (2019). Title 2...

Is it possible only to state the authors name once and then just put a line? Like the following: 

Doe, John. (2020). Title 1...
-----------------. (2019). Title 2...

I have seen it in multiple bibliographys in books and would like to copy the style.

Thanks a lot.