• Sign In



  • Categories

    Extension Details



    Readme

    Unwrap Paragraph adds the ability to merge multiple lines of selected text into one.

    This is useful for combining multiple lines of data into one, or reflowing a paragraph of text that has had manual line breaks applied such as something pasted from an old email. It also coalesces areas of white space into a single space. So, it's not just "Join Lines" but something more specific.

    In the TextMate editor this command is called Unwrap Paragraph, which is why I've kept the same name.

    Example

    Before:

        What 
    exactly does  
    this   extension    
    do with the
    text?  🤔
    

    After:

    What exactly does this extension do with the text? 🤔
    

    Source code, before:

    {
        0x050,
        0x104,
        0x202,
        0x050,
        0x451,
        0x104,
        0x505,
        0x088,
        0x272,
        0x104,
        0x050
    }
    

    Source code, after:

    { 0x050, 0x104, 0x202, 0x050, 0x451, 0x104, 0x505, 0x088, 0x272, 0x104, 0x050 }
    

    Usage

    To run Unwrap Paragraph:

    • Select the Editor → Unwrap Paragraph menu item; or
    • Open the command palette and type Unwrap Paragraph

    The command will run on either:

    1. the selected text
    2. the text surrounding the cursor

    Release Notes

    Version 2.0.0

    Add: operate on text surrounding cursor
    Add: unwrap multiple paragraphs at once in selected text

    Version 1.0.4

    Change: clarify usage requires text to be selected

    Version 1.0.3

    Change: larger icon symbol

    Version 1.0.x

    Change: README

    Version 1.0

    Initial release