0
Good morning! In Visual Studio Code column mode, activated either by the middle mouse button or by the combination with the Alt key, how can I insert something in all lines, but in the same column? For example: I have the following lines below:
São Paulo
Campinas
São José dos Campos
Santos
Piracicaba
then I want to insert, in this example, the literal "SP" in a column in front of the names of the cities, like this:
São Paulo SP
Campinas SP
São José dos Campos SP
Santos SP
Piracicaba SP
I still haven’t found this facility. It always inserts at the end of each row, getting:
São PauloSP
CampinasSP
São José dos CamposSP
SantosSP
PiracicabaSP
Another detail: I don’t always enter information by simple typing. I paste the information from the desktop. So if ALWAYS I need to mark the column on all n-lines, it will become counterproductive, as I may have situations with thousands of lines.
See function animation in action in the IDM Ultraedit editor:
This answers your question? Indent code in Visual Studio Code
– hugocsl
It’s not indentation, because it depends on the file type. What I’m looking for is an easy way to insert data (pasting or typing) into a given column for all selected rows. It would be a tabulated text.
– Vítor Luís
look ai https://imgur.com/a/axymMx9
– hugocsl
Good morning, hugocsl! Today I do this. For a few lines it is suitable and efficient, but I can have situations that insert thousands of lines. One more detail that I originally did not indicate: I want to paste information into that column. Ever imagined I have to always select all n-lines? I would like to click on a column and apply the OS collage (the popular Ctrl+V).
– Vítor Luís