In Visual Studio Code I\'m using the replacement feature. The regex option is activated and the parameters are as follows.
Find: ^.*$ Replace: \\0 D
You can use:
$ = end of line ^ = begin of line