1. General
-
Use one comment character to comment out or disable a code line.
-
Use two consecutive comment characters for regular comments.
-
Use spaces instead of tabs for alignment and indentation.
-
Use double quotes instead of single quotes.
2. PowerShell
-
Use spaces instead of tabs for alignment and indentation.
:set expandtab " Insert space characters whenever tab key is pressed. :set tabstop=4 " Insert 4 space characters when tab key is pressed. -
Use double quotes instead of single quotes.
Use single quotes only for aposthrophes.$hello = "Hello" "aa bb cc" -replace "^aa (.*) cc$", "$hello `$1"