为什么可以';我不能在Powershell ISE中创建一个here字符串吗?

为什么可以';我不能在Powershell ISE中创建一个here字符串吗?,powershell,herestring,Powershell,Herestring,正在尝试创建一个here字符串 > $scriptblock =@' The string is missing the terminator: '@. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString 为什么我在Powershell ISE中得到这个,但它

正在尝试创建一个here字符串

> $scriptblock =@'
The string is missing the terminator: '@.
 + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
 + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
为什么我在Powershell ISE中得到这个,但它在Powershell中正常工作? 版本5.1

> $scriptblock =@'
>> 
不,单引号后面没有空格。我刚按了回车键。
我甚至关闭并重新打开了ISE和同样的东西。

Mathias R.Jessen提供的答案:
按[Shift+Enter]在ISE控制台中插入文字换行符

Mathias R.Jessen提供的答案:
按[Shift+Enter]在ISE控制台中插入文字换行符

[Shift+Enter]
在ISE控制台中插入文字换行符或使用集成脚本面板我必须与我的远程桌面应用程序一起进入全屏,以使其工作,从而不会捕获该按键组合。为什么我不知道呢?不太方便,Microsoft。按
[Shift+Enter]
在ISE控制台中插入文字换行符,或使用集成脚本窗格。我的远程桌面应用程序必须全屏显示,才能正常工作,这样它就不会捕获该键组合。为什么我不知道呢?不太方便,微软。