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

  • 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.

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

    rather than

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

    Thank you

  • 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 !

Log in to reply