In some circumstances i might have to copy and paste text that is already partially formatted (or completely unformatted) from either a web page or another source, such as notepad.
It would be great if all text could be selected and then an 'autoformat' option be made available, which would
(a) strip all existing tabs and indentations, and reformat it like is done when new code is entered.
(b) Provide an option to enforce '{' beginning on the line of code before the script block code, and the closing one to always be on a new line.
e.g.
foreach ($apple in $apples) {write-host "an apple"}
would become
foreach ($apple in $apples) {
write-host "an apple"
}
Powershell Studio : Feature Request - Pasted Test Formatting
Forum rules
Do not post any licensing information in this forum.
Do not post any licensing information in this forum.