codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

How to clear console between every execution

Open oxk4r01 opened this issue 4 years ago • 10 comments

Discussed in https://github.com/codesandbox/codesandbox-client/discussions/5344

Originally posted by joey-ful January 9, 2021 Hi! I have my clear console option on (It has been on the whole time since I never changed the default setting) However, it doesn't seem to be working. How could I have my console cleared automatically between every execution?

image image

Thanks

oxk4r01 avatar Dec 01 '21 07:12 oxk4r01

Thanks for raising this @oxk4r01 - We're aware of the issue here and it's on our list to address.

JamesACS avatar Dec 06 '21 16:12 JamesACS

Thanks for raising this @oxk4r01 - We're aware of the issue here and it's on our list to address.

@JamesACS this seems to still have not been fixed, is there another way to fix this ?

JustinWouters avatar Feb 21 '22 23:02 JustinWouters

I have found that if you refresh the page it will clear the console

silverine-ray avatar Apr 22 '22 14:04 silverine-ray

Hey thanks for reaching out. I've just decided to use replit instead for quick testing and use vs code for most things now it seems silly to have to refresh the page each time they should really fix this!

On Fri, Apr 22, 2022 at 7:48 AM Silverine @.***> wrote:

I have found that if you refresh the page it will clear the console

— Reply to this email directly, view it on GitHub https://github.com/codesandbox/codesandbox-client/issues/6329#issuecomment-1106590220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXSMH4X52ASNILLQ7BNU7ULVGK32DANCNFSM5JDW6GWA . You are receiving this because you commented.Message ID: @.***>

JustinWouters avatar Apr 22 '22 19:04 JustinWouters

Thanks for raising this @oxk4r01 - We're aware of the issue here and it's on our list to address.

@JamesACS - I'd be happy to work on this, do you have any information you could send over? Would be great to help me get familiar with the codebase.

alessiogmonti avatar Jun 25 '22 11:06 alessiogmonti

This issue seems to persist. We need to refresh the page ( not the entire codesandbox but the live preview page ) to clear the console / clear the console with clear button in console.

It would be a great addition if we can clear the console on every execution.

anjantalatam avatar Mar 11 '23 14:03 anjantalatam

"clear console":{ "prefix":"ccl", "body":["console.clear();"], "description":"clears the console print history" }

i am using this snippet in javascript to clear the console print history.

rakeshnoothi avatar Mar 21 '23 06:03 rakeshnoothi

i am using this snippet in javascript to clear the console print history.

How are you running this snippet? I haven't been able to figure it out. Is there support for it in a regular sandbox?

Edit: Nvm, figured it out. The "File" menu in Codesandbox is the top-left hamburger menu of the browser sandobx next to the label "Personal"

DigitalNaut avatar Mar 27 '23 06:03 DigitalNaut