To create scratch org, first of all, you need to Enable Dev Hub
After you enabled the dev hub org in your org, the next step is to create the default scratch org. Go to command palette in visual studio code and find “sfdx: create a default Scratch Org…“. Select the command.