Skip to content

Instantly share code, notes, and snippets.

@rwp0
Last active March 16, 2023 09:17
Show Gist options
  • Save rwp0/a28591d7314c1c7e1296cf8fb9b6e026 to your computer and use it in GitHub Desktop.
Save rwp0/a28591d7314c1c7e1296cf8fb9b6e026 to your computer and use it in GitHub Desktop.
My Perl Coding Style with Perl-Tidy
# Indent
--indent-columns=2 # Short: -i, Default: 4
# Output
--standard-output # Short: -st, Default: --nostandard-output (Short: -nst)
# Functions
--space-function-paren # -sfp
--space-prototype-paren=2 # -spp
# Tokens
--want-left-space='-> ,' # -wls
--want-right-space='->' # -wrs
--opening-token-right # -otr
# Abbreviation for below:
# --opening-paren-right (-opr)
# --opening-hash-brace-right (-ohbr)
# --opening-square-bracket-right (-osbr)
# Commas
--want-trailing-commas=1 # -wtc=s
--add-trailing-commas # -atc
# https://metacpan.org/dist/Perl-Tidy/view/bin/perltidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment