Open Settings:Open VS Code.Press Ctrl + , (Windows/Linux) or Cmd + , (Mac) to open the Settings.Search for "window.restoreWindows":In the Settings search bar, type window.restoreWindows.Change the Setting:Locate the Window: Restore Windows setting.From the dropdown menu, select none. This setting ensures that VS Code opens with a new empty window each time.Alternatively, Modify the settings.json..