Last active
February 5, 2026 06:55
-
-
Save LuisPalacios/463a17de740fe2a035b529a02c76b646 to your computer and use it in GitHub Desktop.
Script para cargar las extensiones de VSCode desde PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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