New doctypes doesn't appear in the files

When i create a new doctype, and try to view the file from the code, I don’t find any trace of it as if the doctype wasn’t created, although it appears in the UI.

Hi:

Probably you are not in developer mode.

https://frappeframework.com/docs/user/en/guides/app-development/how-enable-developer-mode-in-frappe

Hope this helps.