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
This patter does work on my VS Code but only on lines that actually contain something. Empty lines stay empty.
Find: ^(.*)$ Replace: $0 Donkey
You can use:
$ = end of line ^ = begin of line
The easiest way to do it is like this:
Find: $ Replace: Donkey