In Visual Studio one can do a rectangular selection of text and edit the selection with text that is multiplied on each of the selected row. (Hmm this is a bit hard to explain, but you could have a look at the demo below).
Let us suppose that in the Visual Studio editor we have the following content:
Hold the ALT key and than drag the mouse to select a rectangular area that spans over the public keywords:
And this is the final result: