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.7k 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.
    • Juan CarlosJ
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors