question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrap each line into template, "Surround With" analog

See original GitHub issue

Add an option to wrap each line into some construction (also could prepend and append), as IDEA does not have built in feature to treat selection for “Surround With” as separate lines.

That`s useful when creating SQL requests from CSV lists for example: from

site1.com
site2.com
site3.com
...
site10000.com

into

('site1.com', 0, 1),
('site2.com, 0, 1),
('site3.com, 0, 1),
...
('site10000.com, 0, 1),

Now I have to use multi-caret mode editing, but it’s painfully slow to work with 10k+ lists (though I’ve manually set max caret count to 5k).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
PsychodelEKScommented, Oct 27, 2021

I would like that feature, but somehow smarter - with a scripting engine so that it can also increment and transform

ye, may utilize line number/counter additionally and total number, i.e: ('[2/123] site1.com', 0, 1)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Surround multiple lines with quotes - intellij idea
I'm trying to build a live template that will work like the 'wrap in comment' live template (that puts a // before each...
Read more >
Wrapping a Tag. Example of Applying Surround Live Templates
As an example of applying a surround template, let's wrap a piece of XML code with tags. To surround a code fragment.
Read more >
In-wall Wiring Guide for Home A/V - Crutchfield
How to run speaker wire and audio/video cables through the walls in your home. A comprehensive DIY guide, with videos.
Read more >
View tracks as music notation in Logic Pro - Apple Support
View music notation in the Logic Pro Score Editor, set the View mode and Link ... view: Shows one or more tracks in...
Read more >
5.1 Vs 7.1 Surround Sound: Make the Right Decision!
The surround system can be digital or analog. There are options to satiate your needs whether listening to music or watching movies at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found