Skip to content

Instantly share code, notes, and snippets.

@HariSekhon
Created September 17, 2024 14:38
Show Gist options
  • Save HariSekhon/6b702066c2715a31c5613f6a5f6e7d92 to your computer and use it in GitHub Desktop.
Save HariSekhon/6b702066c2715a31c5613f6a5f6e7d92 to your computer and use it in GitHub Desktop.
vs-code.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

VS Code

Visual Studio Code is a popular free IDE from Microsoft.

Download

https://code.visualstudio.com/docs/

VS Code CLI

Ensure the code CLI binary is in your $PATH by adding this directory to the $PATH:

/Applications/Visual Studio Code.app/Contents/Resources/app/bin

Extensions

https://marketplace.visualstudio.com/vscode

Install Extensions

code --install-extension <extension_id>

Define the list of extensions you want to install:

EXTENSIONS="
dbaeumer.vscode-eslint
golang.go
mads-hartmann.bash-ide-vscode
msazurermtools.azurerm-vscode-tools
ms-azure-devops.azure-pipelines
ms-azuretools.vscode-azurecontainerapps
ms-azuretools.vscode-azureresourcegroups
ms-azuretools.vscode-azurestaticwebapps
ms-azuretools.vscode-azurestorage
ms-azuretools.vscode-azureterraform
ms-azuretools.vscode-azurevirtualmachines
ms-azuretools.vscode-cosmosdb
ms-kubernetes-tools.vscode-aks-tools
ms-kubernetes-tools.vscode-kubernetes-tools
ms-ossdata.vscode-postgresql
ms-python.autopep8
ms-python.debugpy
ms-python.black-formatter
ms-python.flake8
ms-python.python
ms-python.pylint
ms-python.vscode-pylance
ms-mssql.mssql
ms-toolsai.vscode-ai
ms-vscode.azurecli
ms-vscode.azure-repos
ms-vscode.cmake-tools
ms-vscode.makefile-tools
ms-vscode.vscode-node-azure-pack
ms-vscode.vscode-typescript-next
vsciot-vscode.azure-iot-toolkit
vscjava.vscode-maven
vscjava.vscode-gradle
yzhang.markdown-all-in-one
"
#ms-vscode.powershell

Iterate code --install-extension over them:

for extension in $EXTENSIONS; do
    code --install-extension "$extension"
done

output:

Installing extensions...
Installing extension 'mads-hartmann.bash-ide-vscode'...
Extension 'mads-hartmann.bash-ide-vscode' v1.42.0 was successfully installed.
Installing extensions...
Installing extension 'yzhang.markdown-all-in-one'...
Extension 'yzhang.markdown-all-in-one' v3.6.2 was successfully installed.
code --list-extensions
code --uninstall-extension <extension-id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment