Is there a way to save a preset for new projects?

Godot Version

4.5.stable

Question

Every time I start a new project, I always create 3 folders: “assets”, “scenes” and “scripts”.
Is there a way I can save these as a preset, similar to how you can save the startup file in blender?
Untitled

If it’s something you have to do very often, I recommend creating a PowerShell script to automate this process for you. Here’s a VERY simple PowerShell script to do this, but this has almost no error handling, so adjust it as needed. And you need to replace the path to YOUR godot exe version.

param( [Parameter(Mandatory=$true)] [string]$ProjectPath )

if (-Not (Test-Path -Path $ProjectPath)) {
    New-Item -ItemType Directory -Path $ProjectPath | Out-Null
}

New-Item -ItemType Directory -Path (Join-Path $ProjectPath "assets") | Out-Null
New-Item -ItemType Directory -Path (Join-Path $ProjectPath "scenes") | Out-Null
New-Item -ItemType Directory -Path (Join-Path $ProjectPath "scripts") | Out-Null
New-Item -ItemType File -Path (Join-Path $ProjectPath "project.godot") | Out-Null

# REPLACE THIS WITH YOUR GODOT EXE LOCATION!
Start-Process "C:\Users\YOU\Programs\Godot_v4.5-stable_mono_win64\Godot_v4.5-stable_mono_win64.exe" "-e --path `"$ProjectPath`""

You’d call this script from the Command line like this:
.\createProject.ps1 -ProjectPath "D:\TestProject"

2 Likes