Community
    • Login

    Feature Request: type bracket to surround selected text

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • linpengchengL
      linpengcheng
      last edited by

      Feature Request: type bracket to surround selected text.
      example:
      1.select text: abc
      2. type (
      3. result: "(abc)

      Andrew DunnA 1 Reply Last reply Reply Quote 0
      • Andrew DunnA
        Andrew Dunn @linpengcheng
        last edited by Andrew Dunn

        What you’re talking about is encapsulating. Honestly I would find this useful occasionally as a time saver, but I could more so see this as a plugin.

        It would be even more useful to me with the option add line breaks and adjust indentation at the same time.
        [
        “string”,
        “string2”
        ]
        becomes
        [
        [
        “string”,
        “string2”
        ]
        ]

        all with a hotkey press. Yes please. But I think that’s too specialized to be in the main program. Like I say, this could be a plugin.

        Okay so the website eats my whitespace. That’s more than a little ironic, isn’t it?

        Scott SumnerS 1 Reply Last reply Reply Quote 0
        • Scott SumnerS
          Scott Sumner @Andrew Dunn
          last edited by

          @Andrew-Dunn said:

          the website eats my whitespace

          If you’re going to do something that looks like a code-block, I believe you need to indent with four or more spaces leading off each line. When I do it, I use Notepad++ to prepare it (indented!) and then paste it here. :-)

          1 Reply Last reply Reply Quote 0
          • linpengchengL
            linpengcheng
            last edited by

            This feature is a built-in feature of the sublime & vscode

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors