forked from cadruvimesa/ubuntu-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vscode.sh
executable file
·38 lines (36 loc) · 1.3 KB
/
vscode.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -uo pipefail
if ! command -v code &> /dev/null; then
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
sudo apt install apt-transport-https
sudo apt update
sudo apt install code
extensions="""cfgweb.vscode-perl
DavidAnson.vscode-markdownlint
DotJoshJohnson.xml
foxundermoon.shell-format
golang.go
hashicorp.terraform
justin-grote.better-powershell-syntax-highlighting
mechatroner.rainbow-csv
ms-azuretools.vscode-docker
ms-dotnettools.csharp
ms-vscode.azure-account
ms-vscode.powershell
nico-castell.linux-desktop-file
NicolasVuillamy.vscode-groovy-lint
redhat.vscode-yaml
timonwong.shellcheck
VisualStudioExptTeam.vscodeintellicode
github.copilot
ms-vscode-remote.vscode-remote-extensionpack
"""
echo "$extensions" | xargs -n 1 code --install-extension
echo "If you want to copy vscode settings too, remove the exit here"
exit 0
mkdir -p ~/.config/Code/User
cp ./vscode-settings.json ~/.config/Code/User/settings.json
fi