Remove/Add Line Breaks after Specific String using Sublime Text

后端 未结 4 549
一生所求
一生所求 2021-01-29 17:54

Using Sublime Text 2 - Is it possible to insert a line break/text return after a specific String in a text file e.g. by using the FindReplace

4条回答
  •  盖世英雄少女心
    2021-01-29 18:32

    Here's how you'd do it on a Mac:

    Command+F > type string > Control+Command+G > ESC > Right Arrow > line break


    and Windows/Linux (untested):

    Control+F > type string > Alt+F3 > ESC > Right Arrow > line break


    The important part being Control+Command+G to select all matches.
    Once you've selected the text you're looking for, you can use the provided multiple cursors to do whatever text manipulation you want.

    Protip: you can manually instantiate multiple cursors by using Command+click (or Control+click) to achieve similar results.

提交回复
热议问题