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.Ex:
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 !
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