2013-03-24 13 views
0

我是新來的powershell,因此發現我的手指正在擊中產生>>符號的錯誤鍵。如何「撤消」以繼續使用最初的腳本?Powershell腳本 - 在寫作過程中,如何撤消?

E.g:

$i=0; get-childitem $dirname | foreach-object {...rest of script and I miss closing a bracket or something then get... >> and can't remove that and continue writing script. 

我敢肯定,那就是我還沒有找到一個簡單的組合鍵,但比關閉應用程序,並重新開放好。

非常感謝提前。

回答

0

該符號是續行。只要繼續輸入,就好像您沒有按Enter鍵一樣,它會將所有內容視爲您預期的全線。

0

如果你只是想「撤銷」,然後重新啓動編寫腳本可以按:

Ctrl + C 
+0

啊哈,那就是排序鍵組合我是後。乾杯。 – codemandan 2013-03-25 20:47:00