winget search vscode
winget install --id Microsoft.VisualStudioCode -e
winget list # installed apps
winget upgrade # what has updates
winget upgrade --all
winget uninstall --id Notepad++.Notepad++
winget export -o apps.json # list your apps
winget import -i apps.json # reinstall them on a new PC
Use -e (exact) with an --id. winget export / import is a quick way to set up a new machine. Review what you install: packages come from community manifests, although installers are checksum-verified.