Powershell Best Practice #18: Don’t use Notepad as a script editor

Best Practice: It is recommended to avoid to use Notepad as a script editor.

Explanation:

I saw many times people working with scripts using Notepad/Notepad++ and then running the script in a PowerShell console.
You should not do that as they are basic and poor editor, features are very limited and not appropriated.

With Notepad you cannot have:

Syntax highlighting (to detect syntax errors faster)

Collapse all (Control + M : to go in a specific part of your script faster)

Clean indentation (to have a cleaner and uniform code)

Run selection (F8: run a specific block or lines in your script)

Set breakpoints (F9: temporarily suspend execution of your script at a specific point)