From 5b9e727f91be8ea602efc715395bfa3de2a57588 Mon Sep 17 00:00:00 2001 From: Mehdi Hadeli Date: Sat, 20 Jul 2024 13:15:47 +0000 Subject: [PATCH] build: change in devcontainer.json --- .devcontainer/devcontainer.json | 23 ++++++++++++++++++++--- .devcontainer/scripts/post-create.sh | 3 +++ .devcontainer/scripts/setup-fonts.sh | 24 ++++++++++++++++++++++++ .vscode/settings.json | 19 ++++++++++++++++--- 4 files changed, 63 insertions(+), 6 deletions(-) create mode 100644 .devcontainer/scripts/setup-fonts.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b76f477..0fbf88b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -59,8 +59,22 @@ "git.autofetch": true, "files.autoSave": "onFocusChange", "editor.formatOnSave": true, - "editor.formatOnPaste": true, - "resmon.show.cpufreq": false + "editor.suggest.snippetsPreventQuickSuggestions": false, + "explorer.autoReveal": true, + "resmon.show.cpufreq": false, + "dotnet.defaultSolution": "food-delivery.sln", + "dotnet.server.startTimeout": 60000, + "omnisharp.projectLoadTimeout": 60, + "workbench.colorTheme": "Visual Studio Light", + "workbench.iconTheme": "material-icon-theme", + "editor.minimap.enabled": false, + "editor.fontFamily": "'MesloLGM Nerd Font', 'Droid Sans Mono', 'monospace', 'Droid Sans Fallback', 'Consolas'", + "editor.fontSize": 14, + "explorer.confirmDelete": false, + "terminal.integrated.defaultProfile.windows": "PowerShell", + "terminal.integrated.defaultProfile.linux": "zsh", + "powershell.cwd": "~", + "terminal.external.windowsExec": "%LOCALAPPDATA%\\Microsoft\\WindowsApps\\pwsh.exe" }, "extensions": [ "streetsidesoftware.code-spell-checker", @@ -72,7 +86,10 @@ "vivaxy.vscode-conventional-commits", "emmanuelbeziat.vscode-great-icons", "ms-vscode.vs-keybindings", - "GitHub.vscode-github-actions" + "GitHub.vscode-github-actions", + "PKief.material-icon-theme", + "EditorConfig.EditorConfig", + "DavidAnson.vscode-markdownlint" ] } }, diff --git a/.devcontainer/scripts/post-create.sh b/.devcontainer/scripts/post-create.sh index e8e4bd9..f62691b 100755 --- a/.devcontainer/scripts/post-create.sh +++ b/.devcontainer/scripts/post-create.sh @@ -1,3 +1,6 @@ #!/usr/bin/env bash set -eax + +# Run the setup_fonts.sh script +./setup-fonts.sh \ No newline at end of file diff --git a/.devcontainer/scripts/setup-fonts.sh b/.devcontainer/scripts/setup-fonts.sh new file mode 100644 index 0000000..309333b --- /dev/null +++ b/.devcontainer/scripts/setup-fonts.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Download MesloLGM Nerd Font +wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Meslo.zip -O MesloLGM.zip + +# Extract the font files +unzip MesloLGM.zip -d MesloLGM + +# Create the fonts directory if it doesn't exist +mkdir -p ~/.local/share/fonts + +# Move the font files to the fonts directory +mv MesloLGM/*.ttf ~/.local/share/fonts/ + +# Update the font cache +fc-cache -fv + +# Clean up +rm -rf MesloLGM.zip MesloLGM + +# Verify installation +fc-list | grep "MesloLGM" + +echo "Font setup completed." \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 6c3262a..e961b12 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,8 +1,21 @@ { - "editor.suggest.snippetsPreventQuickSuggestions": false, + "git.autofetch": true, + "files.autoSave": "onFocusChange", "editor.formatOnSave": true, + "editor.suggest.snippetsPreventQuickSuggestions": false, + "explorer.autoReveal": true, + "resmon.show.cpufreq": false, "dotnet.defaultSolution": "food-delivery.sln", "dotnet.server.startTimeout": 60000, - "explorer.autoReveal": true, - "omnisharp.projectLoadTimeout": 60 + "omnisharp.projectLoadTimeout": 60, + "workbench.colorTheme": "Visual Studio Light", + "workbench.iconTheme": "material-icon-theme", + "editor.minimap.enabled": false, + "editor.fontFamily": "'MesloLGM Nerd Font', 'Droid Sans Mono', 'monospace', 'Droid Sans Fallback', 'Consolas'", + "editor.fontSize": 14, + "explorer.confirmDelete": false, + "terminal.integrated.defaultProfile.windows": "PowerShell", + "terminal.integrated.defaultProfile.linux": "zsh", + "powershell.cwd": "~", + "terminal.external.windowsExec": "%LOCALAPPDATA%\\Microsoft\\WindowsApps\\pwsh.exe" } \ No newline at end of file