Sublime Forum

Change the length of selected text in sublime text 3

#1

Is there a way to split selected long text into multiple shorter lines?

For example the following text has long lines:


French President Emmanuel Macron said France will not accept text that does not mention the historic Paris accord.

"If we don't talk about the Paris agreement and if we don't get an agreement on it among the 20 members in the room, we are no longer capable of defending our climate change goals and France will not be part of this," he said on Wednesday.

France was one of the main drivers behind the Paris accord and the French parliament is now debating an energy bill that targets net zero greenhouse gas emissions by 2050.

"Negotiations on the topic of climate will be especially difficult this time," a German government official said.

Is there a way to have then split into multiple equal shorter lines like this

French President Emmanuel Macron said France will not 
accept text that does not mention the historic Paris 
accord. 

"If we don't talk about the Paris agreement and if we don't 
get an agreement on it among the 20 members in the room, we 
are no longer capable of defending our climate change goals 
and France will not be part of this," he said on Wednesday. 

France was one of the main drivers behind the Paris accord 
and the French parliament is now debating an energy bill 
that targets net zero greenhouse gas emissions by 2050. 

"Negotiations on the topic of climate will be especially 
difficult this time," a German government official said.

Is there a plugin or some usefult code that I can integrate into ST3?

0 Likes

#2

You want “text wrapping”. Try these plugins:

https://packagecontrol.io/packages/Wrap%20Plus
https://packagecontrol.io/packages/AutoWrap

Edit:

Oh, seems like I missed the built-in Edit > Wrap command. (mentioned in the SO answer by OdatNurd

1 Like

#3

See also the answer in your SO question:

1 Like

#4

Thanks a lot. I’ll try the solution and let you know.

0 Likes