Community
    • Login

    Feature Request: type bracket to surround selected text

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 2.3k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            linpengcheng
            last edited by

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

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors