Powershell Studio : Feature Request - Pasted Test Formatting

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 10 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
pringtef
Posts: 45
Last visit: Mon Sep 23, 2019 11:00 am

Powershell Studio : Feature Request - Pasted Test Formatting

Post by pringtef »

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"
}
This topic is 10 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked