Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.32 KB

windows.md

File metadata and controls

49 lines (37 loc) · 1.32 KB

Migrating to MrCode (Windows)

Backup

VSCode

mkdir -ErrorAction SilentlyContinue User\snippets

# Backup settings files
Copy-Item -Path $env:appdata\Code\User\keybindings.json -Destination User
Copy-Item -Path $env:appdata\Code\User\settings.json -Destination User
Copy-Item -Path $env:appdata\Code\User\snippets\* -Destination User\snippets

# Export extension list
code --list-extensions | Out-File -FilePath vscode-extensions.txt

VSCodium

mkdir -ErrorAction SilentlyContinue User\snippets

# Backup settings files
Copy-Item -Path $env:appdata\VSCodium\User\keybindings.json -Destination User
Copy-Item -Path $env:appdata\VSCodium\User\settings.json -Destination User
Copy-Item -Path $env:appdata\VSCodium\User\snippets\* -Destination User\snippets

# Export extension list
codium --list-extensions | Out-File -FilePath vscode-extensions.txt

Restore

# Restore settings files
Get-ChildItem -File User | Copy-Item -Path { $_.FullName } -Destination $env:appdata\MrCode\User
Get-ChildItem -File User\snippets | Copy-Item -Path { $_.FullName } -Destination $env:appdata\MrCode\User\snippets

# Import extensions
ForEach ($name in Get-Content vscode-extensions.txt) {
  Write-Host $name -ForegroundColor Blue
  mrcode --install-extension $name
  Write-Host `n
}