Discuss Scratch

codesysy
Scratcher
25 posts

A Back button while coding

We need A Back button while coding. Because sometimes ill do a really big code then add a bunch of stuff test it and then the project will fail and I have to start all over again because I keep moving stuff around and changing things. Reply if u agree


PS: When I say back button I mean basically an undo button

Last edited by codesysy (March 2, 2021 19:36:47)

Socialix
Scratcher
1000+ posts

A Back button while coding

Right Click > Undo to undo code changes.
Edit > Restore _________ to undo object deletion.

I don't know what you're trying to suggest, but I think it's an undo function.
codesysy
Scratcher
25 posts

A Back button while coding

Socialix wrote:

Right Click > Undo to undo code changes.
Edit > Restore _________ to undo object deletion.

I don't know what you're trying to suggest, but I think it's an undo function.


that's only on costumes I mean an undo button for code.
wosdcs
Scratcher
100+ posts

A Back button while coding

codesysy wrote:

Socialix wrote:

Right Click > Undo to undo code changes.
Edit > Restore _________ to undo object deletion.

I don't know what you're trying to suggest, but I think it's an undo function.


that's only on costumes I mean an undo button for code.

DUDE, There IS an undo button for code XD
eikh2
Scratcher
1000+ posts

A Back button while coding

codesysy wrote:

that's only on costumes I mean an undo button for code.
there is…
codesysy
Scratcher
25 posts

A Back button while coding

eikh2 wrote:

codesysy wrote:

that's only on costumes I mean an undo button for code.
there is…


There is an undo button when your drawing costumes, not if u wanna undo the code u did If there is one for your code plz tell me where.
Socialix
Scratcher
1000+ posts

A Back button while coding

codesysy wrote:

Socialix wrote:

Right Click > Undo to undo code changes.
Edit > Restore _________ to undo object deletion.

I don't know what you're trying to suggest, but I think it's an undo function.
that's only on costumes I mean an undo button for code.
I literally said the way to undo code changes in the post.
IMAWarriors
Scratcher
76 posts

A Back button while coding

Hello there! I would love to offer my support, but your suggestion already exists! The people in this forum have tried to convey it, but I'll try just for the sake of it. There is a function built in to undo recent actions in code. This actually also functions in the sound and costume editors. But it just also so happens to work perfectly well in the code editor. The instructions are as follows:

1.) You can see here I have some code, but I made a mistake. It used to say (my variable * my variable) but I made accidentally moved it to the broadcast block. In order to fix this, I could just drag the variable back, or I could just simple undo it.



2.) First of all, right click on the editor anywhere where there is not code.



3.) Then select the undo button and left click it.



4.) You can see my problem is solved by this



Alternatively, if you are using a Windows OS, you can use the key bind Control+Z, and if you are on a Mac OS, you can use the key bind Command+Z. Either works. I understand you might be asking for a physical button, but I don't think this is much of an issue at the moment as there is already a way to undo things. Perhaps the scratch team will add a convenience button, but this works just as well. I hope this helped you and have a great day!
SpinningCube
Scratcher
100+ posts

A Back button while coding

In order to undo code, right-click an empty part of the workspace, and a dropdown will appear. Click undo.
codesysy
Scratcher
25 posts

A Back button while coding

SpinningCube wrote:

In order to undo code, right-click an empty part of the workspace, and a dropdown will appear. Click undo.
Oh rlly thanks!

Powered by DjangoBB