Community
    • Login

    Option to Add X number of spaces after a parenthesis or square bracket

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 2.9k Views 1 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.
    • Juan CarlosJ Offline
      Juan Carlos
      last edited by

      Is there an option to do something like that?
      I program a lot in Perl and I like adding spaces after opening a parenthesis or bracket and before closing it for readability.

      Ex:
      if ( $x ne $y ){
      say “BLAH”;
      }

      rather than

      if ($x ne $y){
      say “BLAH”;
      }

      Thank you

      1 Reply Last reply Reply Quote 0
      • Gogo NeatzaG Offline
        Gogo Neatza
        last edited by

        Yes, there is such an option.
        The option is called ‘Macro’. You can find it in the Notepad++ main menu
        between ‘Tools’ and ‘Run’.
        Macro - Start Recording would be a good starting point.
        Have fun !

        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