Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear screen in F# interactive in VS2010?

Tags:

Is there any way to clear the F# interactive window in VS2010?

#cls;; and #clear;; don't work.

Quitting with #quit;; leads to the restart of F# interactive without clearing the window content.

Attempt to delete text with "delete" or "backspace" gives an error message that the text is read-only.

like image 325
Alexander Galkin Avatar asked Feb 10 '12 13:02

Alexander Galkin


2 Answers

Clear All

. Right Click and Clear All.

like image 168
swapneel Avatar answered Sep 20 '22 18:09

swapneel


If you are inside of VS F# Interactive window, you can use right mouse click and select

Clear All 

Unfortunately this will now work in stand alone console FSI window. So what you can do is to following command in your console FSI window

System.Console.Clear();; 
like image 37
Vlad Bezden Avatar answered Sep 20 '22 18:09

Vlad Bezden