codesandbox / codesandbox-client

An online IDE for rapid web development
https://codesandbox.io
Other
13.01k stars 2.27k forks source link

How to clear console between every execution #6329

Open oxk4r01 opened 2 years ago

oxk4r01 commented 2 years ago

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](https://user-images.githubusercontent.com/52592748/104092299-66679a00-52c6-11eb-9baa-6f04eab8012f.png) ![image](https://user-images.githubusercontent.com/52592748/104092291-5bad0500-52c6-11eb-88ab-c6b6057317fb.png) Thanks
JamesACS commented 2 years ago

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

JustinWouters commented 2 years ago

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 ?

silverine-ray commented 2 years ago

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

JustinWouters commented 2 years ago

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: @.***>

alessiogmonti commented 2 years ago

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.

anjantalatam commented 1 year ago

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.

rakeshnoothi commented 1 year ago

"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.

DigitalNaut commented 1 year ago

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"

ojhapranav222 commented 4 months ago

Is the issue resolved? I guess not yet...

CompuIves commented 4 months ago

@ojhapranav222 it should be resolved. We clear the console between executions. If not, could you share a link so I can check it out?