Discuss Scratch
- Discussion Forums
- » Suggestions
- » delete all blocks/reporters that are not connected to a hat block
- doyouknowjasher441
-
100+ posts
delete all blocks/reporters that are not connected to a hat block
Please add “ delete all blocks/reporters that are not connected to a hat block ” to the menu in the editor next to delete all blocks it will be so useful because I make a lot of blocks/reporters scattered through my project that are not connected to anything and when I load my project scratch loads the blocks/reporters that are not connected to a hat block and it is a pain waiting extra time waiting for those unused blocks to load and I don't want to delete the blocks/reporters myself because there is so much unused code in every sprite so yep.
( Note: This guy
( Note: This guy
name for it is better but with the edition of “ /reporters ” so make the name like " Delete stray blocks/reporters ) Maybe “delete stray blocks” could be a suitable name.
Last edited by doyouknowjasher441 (Nov. 9, 2023 06:26:06)
- KingRat_1
-
100+ posts
delete all blocks/reporters that are not connected to a hat block
Support
- IndexErrorException
-
500+ posts
delete all blocks/reporters that are not connected to a hat block
Support
This time I agree with you!
When I get making my hundred block+ projects there always ends up hundreds of reporters and operators and random blocks everywhere, just go to my Verlet Integration project
- yadayadayadagoodbye
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
pretty self explanatory on how this is useful, could probably be placed under the “delete all blocks” button, only issue would be how hard it'd be to implement (idk, because idk how scratch blocks are stored lol)
- doyouknowjasher441
-
100+ posts
delete all blocks/reporters that are not connected to a hat block
Thanks!Support
This time I agree with you!
When I get making my hundred block+ projects there always ends up hundreds of reporters and operators and random blocks everywhere, just go to my Verlet Integration project
- TheEpikGamer211
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
useful.
- doyouknowjasher441
-
100+ posts
delete all blocks/reporters that are not connected to a hat block
But it will be worth it. lol pretty self explanatory on how this is useful, could probably be placed under the “delete all blocks” button, only issue would be how hard it'd be to implement (idk, because idk how scratch blocks are stored lol)
- ajskateboarder
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
Support because


Maybe it could be called “Delete old code”. Also here's a mockup for you useful.


- MagicCoder330
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
Looks like a good idea. It should be like “delete loose variables” or something though, because sometimes there are disconnected parts that are just UNUSED, not removed.
- trainmancomics
-
30 posts
delete all blocks/reporters that are not connected to a hat block
Support. A lot of times when I'm coding, leftover blocks (i'll call them “crumbs”) will show up around the main code body, due to testing, fixing a bug, whatever. This doesn't make the code look pretty. So in my effort to delete this code, I hit “Clean up code blocks” (or whatever it's called idk) to find them all. But in the process I forget where my code bodys where so I either painfully drag them to where they used to be or try to get adapted to the layout. This would make the code section look so much nicer.
- qwerty_wasd_gone
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
This post is useless now. (Not the topic itself I mean post #11 on this topic)
Last edited by qwerty_wasd_gone (Nov. 7, 2023 18:11:30)
- doyouknowjasher441
-
100+ posts
delete all blocks/reporters that are not connected to a hat block
oh ok, lemme fix that Oh you forgot 3 things…when I start as a cloneThey are both hat blocks that aren't in events.
define ...
Also the extension hats which are their own categories themselves and are not in events.
So that's not good. It should bedelete all blocks that are not connected to a hat blockand notdelete all blocks that are not connected to a event block
- yadayadayadagoodbye
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
maybe just “delete all disconnected blocks”? Oh you forgot 3 things…when I start as a cloneThey are both hat blocks that aren't in events.
define ...
Also the extension hats which are their own categories themselves and are not in events.
So that's not good. It should bedelete all blocks that are not connected to a hat blockand notdelete all blocks that are not connected to a event block
- doyouknowjasher441
-
100+ posts
delete all blocks/reporters that are not connected to a hat block
i edited the post, now its correct nowmaybe just “delete all disconnected blocks”? Oh you forgot 3 things…when I start as a cloneThey are both hat blocks that aren't in events.
define ...
Also the extension hats which are their own categories themselves and are not in events.
So that's not good. It should bedelete all blocks that are not connected to a hat blockand notdelete all blocks that are not connected to a event block
- doyouknowjasher441
-
100+ posts
delete all blocks/reporters that are not connected to a hat block
i fixed it check my post now Post was edited.

Last edited by doyouknowjasher441 (Nov. 7, 2023 18:11:01)
- qwerty_wasd_gone
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
Well then support, because it helps cleaning up the project and it is optional.i edited the post, now its correct nowmaybe just “delete all disconnected blocks”? Oh you forgot 3 things…when I start as a cloneThey are both hat blocks that aren't in events.
define ...
Also the extension hats which are their own categories themselves and are not in events.
So that's not good. It should bedelete all blocks that are not connected to a hat blockand notdelete all blocks that are not connected to a event block
- doyouknowjasher441
-
100+ posts
delete all blocks/reporters that are not connected to a hat block
thanks for notifying me thoWell then support, because it helps cleaning up the project and it is optional.i edited the post, now its correct nowmaybe just “delete all disconnected blocks”? Oh you forgot 3 things…when I start as a cloneThey are both hat blocks that aren't in events.
define ...
Also the extension hats which are their own categories themselves and are not in events.
So that's not good. It should bedelete all blocks that are not connected to a hat blockand notdelete all blocks that are not connected to a event block

- PaperMarioFan2022
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
Good idea! This would be amazing to have in case if you forgot to move unused blocks back to the block category shelf.
Last edited by PaperMarioFan2022 (Nov. 7, 2023 18:32:08)
- PaperMarioFan2022
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
According to the sentence, (removed) doesn't mention third-party extensions/ user scripts as the policy describes, so this is okay.when [i am scratcher v] key pressed
if <i help people = true> then
broadcast [you should get (removed) it does that v]
end
Please don't mention extensions (but you can say Pen or micro:bit, etc).
- gdfsgdfsgdfg
-
1000+ posts
delete all blocks/reporters that are not connected to a hat block
they censored it According to the sentence, (removed) doesn't mention third-party extensions/ user scripts as the policy describes, so this is okay.
where reason Support
Last edited by gdfsgdfsgdfg (Nov. 7, 2023 19:33:50)
- Discussion Forums
- » Suggestions
-
» delete all blocks/reporters that are not connected to a hat block