This project is read-only.
1
Vote

Within VS copy and paste not pasting the newlines correctly.

description

Within the studioshell window if I paste a multi-line statement, like a function, it pastes correctly "visually", but upon hitting enter to eval it, the new line characters will not taken into account.

For prototyping it is a great headache and usage of here strings are impossible because of this.

Pasting the very same thing into ISE works like a charm.

Sample test:
function test
{
    $a = 1
    $content=@"
hello $a
"@

    write-host $content
}

file attachments

comments