Copy Your Profile from ISE to Visual Studio Code
# Get the path to the Profile files
$ISEProfile = Join-Path (Split-Path $profile) "Microsoft.PowerShellISE_profile.ps1"
$VSCProfile = Join-Path (Split-Path $profile) "Microsoft.VSCode_profile.ps1"

# If the ISE Profile exists write the content to the VSCode Profile
if(Test-Path $ISEProfile){
    # Check if profile exists, create if it does not
    if(!(Test-Path $VSCProfile)){
        New-Item $VSCProfile -ItemType file -Force
    }
    # write content to VSCode Profile
    "`n# Copied from ISE Profile" | Out-File -FilePath $VSCProfile -Append
    Get-Content $ISEProfile | Out-File -FilePath $VSCProfile -Append
    "# End Copied from ISE Profile " | Out-File -FilePath $VSCProfile -Append
}
Details
Ready to move to VSCode, and want to migrate your profile from ISE. This script will take the entries from ISE and copy them to the VSCode profile.
  |