Home Download Buy Blog Forum Support

how to insert some word after line of more?

how to insert some word after line of more?

Postby Sam Peng on Tue Mar 27, 2012 3:32 pm

I have some paragraph,like this
One,Two
1,2
how to insert some word after this line?


I want to insert some word after this paragraph
# One,Two
# 1,2
# how to insert some word after this line?

have some quick commend?
Sam Peng
 
Posts: 6
Joined: Tue Mar 27, 2012 3:28 pm

Re: how to insert some word after line of more?

Postby abathologist on Wed Mar 28, 2012 7:22 am

Your question is a little hard to parse. Do you mean that you'd like to be able to insert some text at the beginning of several lines? Thus, from this:

Code: Select all
A line of code or prose.
A second line text.
A third line.


to this:

Code: Select all

INSERTED TEXT A line of code or text.
INSERTED TEXT A second line text.
INSERTED TEXT A third line.


If so, I usually deal with this by using the multi-cursor function: hold ctl+shift and arrow up or down to disperse cursors, then type your desired text; or, hold alt+super (on mac: option+command) and click and drag your mouse up the beginning of the rows (or click at the beginning of each line). The only time this method doesn't work so smoothly is when you're using text wrapping.

I imagine you could also write a snippet to do this with a few less clicks/presses.
abathologist
 
Posts: 18
Joined: Thu Mar 15, 2012 1:29 am

Re: how to insert some word after line of more?

Postby Sam Peng on Thu Mar 29, 2012 3:05 am

abathologist wrote:Your question is a little hard to parse. Do you mean that you'd like to be able to insert some text at the beginning of several lines? Thus, from this:

Code: Select all
A line of code or prose.
A second line text.
A third line.


to this:

Code: Select all

INSERTED TEXT A line of code or text.
INSERTED TEXT A second line text.
INSERTED TEXT A third line.


If so, I usually deal with this by using the multi-cursor function: hold ctl+shift and arrow up or down to disperse cursors, then type your desired text; or, hold alt+super (on mac: option+command) and click and drag your mouse up the beginning of the rows (or click at the beginning of each line). The only time this method doesn't work so smoothly is when you're using text wrapping.

I imagine you could also write a snippet to do this with a few less clicks/presses.


thank your suggest!good idea.why don't thinks this of myself? :D
Sam Peng
 
Posts: 6
Joined: Tue Mar 27, 2012 3:28 pm

Re: how to insert some word after line of more?

Postby abathologist on Thu Mar 29, 2012 3:33 am

Cheers! It would be handy to do this in one swoop, but not handy enough for me that I want to write the snippet myself. ;)
abathologist
 
Posts: 18
Joined: Thu Mar 15, 2012 1:29 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 23 guests