[TxMt] Re: How to break long line of code into multiple lines?

Attila Györffy attila.gyorffy at gmail.com
Wed Jan 3 09:47:12 UTC 2018


Hi there Tuk,

I usually just find a delimiter (in your case a comma) and replace them with a newline regexp (\n).

See in the video I’ve quickly put together: https://v.usetapes.com/ZFDCAjpx2i <https://v.usetapes.com/ZFDCAjpx2i>

There may be quicker methods (that I’m unaware of) but this is admittedly far faster than having to manually go through each line.

— Attila

ATTILA GYÖRFFY
I develop software.

attilagyorffy.com <http://attilagyorffy.com/> | @attilagyorffy <http://www.twitter.com/attilagyorffy> |  | in/attilagyorffy <http://linkedin.com/in/attilagyorffy> | github.com/attilagyorffy <http://www.github.com/attilagyorffy>

Every time you print an email, a tree is marked for death.
Trees provide O2. You need that to breathe, remember? 🌳

> On 2018. Jan 3., at 10:34, Tuk Bredsdorff <tuk at tiktuk.net> wrote:
> 
> Hi,
> 
> is there a quick way to transform for instance
> 
> 	[Role, User, UserRole, SourceAddress, BulkMessage, Message, SingleSMSTemplate, Company, Contact]
> 
> into
> 
> 	[
> 		Role,
> 		User,
> 		UserRole,
> 		SourceAddress,
> 		BulkMessage,
> 		Message,
> 		SingleSMSTemplate,
> 		Company,
> 		Contact
> 	],
> 
> ?
> 
> (In this case it's Python but it could be more or less any language.)
> 
> I do this so often manually, there must be a better way?
> 
> Thanks,
> Tuk
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20180103/124c1a2f/attachment.html>


More information about the textmate mailing list