I have seen someone paste vector elements into their RStudio editor and then through some keyboard shortcut introduce a line break at each space between vector elements. In this view they can use RStudio's Alt + Click feature to add text (such as commas) after each element, and then transition all the items back into a wide view.
How is this done?
# original vector
"element1" "element2" "element3"
# stage 2
"element1"
"element2"
"element3"
# stage 3
"element1",
"element2",
"element3",
# final stage in wide view
"element1", "element2", "element3"