How avoid vscode writes files with root privilege?


I work with Ubuntu (WSL), Docker desktop and Visual Studio Code.

When I display my work repertory in Ubuntu, I noticed some of files are the root privilege and not the user privilege.

After several observations, I noticed that when vscode manipulated files, it did it with root privilege. How can I avoid this?

For having files with the user priviliege, I have to create them with the terminal (after change the user root by devilbox).

Thank you