Can I convert already exsisting scripts to this format?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MrBellrick

It would help to reduce the ammount of scripts I see In the file explorer and folders and is this good practice?

:bust_in_silhouette: Reply From: zhyrin

I don’t know of a quick way of doing it. You can detach your script from the node, and add a new built-in script to the node, then copy the contents. Afterwards you can delete the original file.

I do not recommend doing this! The file exporer is there for you to see what your project is comprised of. Your scripts are an intergarl part of the project. If all your scripts are built-in, you make it harder to find and/or maintain. You also can’t share the same built-in script between multiple nodes that would use it (well, not easily at least).
It’s a good idea to have your files separated by purpose. If you have your scripts inside a scene file, your scene will contain 1) the declarative description of what nodes make up the scene 2) source code for how the scene works. These should be stored separately.

I would recommend you think about structuring your files in your project. Check out how other people organize their projects, what is recommended in the documentation, and ultimately; decide what works for your.
You could for example make a source/src folder that only contains your .gd files.