forked from elpaso/qgis-feed
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvscode.sh
More file actions
executable file
·46 lines (38 loc) · 1.47 KB
/
vscode.sh
File metadata and controls
executable file
·46 lines (38 loc) · 1.47 KB
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
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
echo "🪛 Installing VSCode Extensions:"
echo "--------------------------------"
# Ensure .vscode directory exists
mkdir -p .vscode
mkdir -p .vscode-extensions
# Define the settings.json file path
SETTINGS_FILE=".vscode/settings.json"
# Ensure settings.json exists
if [[ ! -f "$SETTINGS_FILE" ]]; then
echo "{}" > "$SETTINGS_FILE"
fi
# Update settings.json non-destructively
echo "Updating VSCode settings.json..."
jq '.["git.enableCommitSigning"] = true' \
"$SETTINGS_FILE" > "$SETTINGS_FILE.tmp" && mv "$SETTINGS_FILE.tmp" "$SETTINGS_FILE"
echo "✅ VSCode settings.json updated successfully!"
echo "Contents of settings.json:"
cat "$SETTINGS_FILE"
# Install required extensions
code --user-data-dir='.vscode' \
--profile='nix-config' \
--extensions-dir='.vscode-extensions' . \
--install-extension batisteo.vscode-django@1.15.0 \
--install-extension zhuangtongfa.material-theme@3.19.0 \
--install-extension naumovs.color-highlight@2.8.0 \
--install-extension GitHub.copilot@1.250.0 \
--install-extension teabyii.ayu@1.0.5 \
--install-extension ms-python.debugpy@2025.8.0 \
--install-extension ms-python.vscode-pylance@2025.5.1 \
--install-extension ms-python.python@2025.6.1 \
--install-extension syler.sass-indented@1.8.33 \
--install-extension GitHub.copilot-chat@0.26.7 \
--install-extension eamodio.gitlens@17.1.1 \
# Launch VSCode with the sandboxed environment
code --user-data-dir='.vscode' \
--profile='nix-config' \
--extensions-dir='.vscode-extensions' .