Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Last active February 5, 2026 06:55
Show Gist options
  • Select an option

  • Save LuisPalacios/463a17de740fe2a035b529a02c76b646 to your computer and use it in GitHub Desktop.

Select an option

Save LuisPalacios/463a17de740fe2a035b529a02c76b646 to your computer and use it in GitHub Desktop.
Script para cargar las extensiones de VSCode desde PowerShell
# Reinstalar extensiones de VSCode desde Gist
# Autor: Luis Palacios
# Gist: https://gist.github.com/LuisPalacios/9bccecf260cf4cc73d74fe9d500f7e94
$GistUrl = "https://gist.githubusercontent.com/LuisPalacios/9bccecf260cf4cc73d74fe9d500f7e94/raw/"
Write-Host "Descargando lista de extensiones desde gist..." -ForegroundColor Cyan
try {
# Descargar el contenido del gist
$content = Invoke-RestMethod -Uri $GistUrl -ErrorAction Stop
# Procesar línea por línea
$lines = $content -split "`n"
foreach ($line in $lines) {
# Limpiar espacios en blanco y saltos de línea
$ext = $line.Trim()
# Saltar líneas vacías y comentarios
if ([string]::IsNullOrWhiteSpace($ext) -or $ext.StartsWith("#")) {
continue
}
# Instalar la extensión
Write-Host "Instalando: $ext" -ForegroundColor Yellow
code --install-extension $ext
}
Write-Host "`nInstalación completa." -ForegroundColor Green
}
catch {
Write-Host "Error al descargar o procesar el gist: $_" -ForegroundColor Red
exit 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment