Wrap each line into template, "Surround With" analog
See original GitHub issueAdd 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:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
seems like you need this https://www.jetbrains.com/help/idea/tutorial-finding-and-replacing-text-using-regular-expressions.html#capture_groups_and_backreference
ye, may utilize line number/counter additionally and total number, i.e:
('[2/123] site1.com', 0, 1)