From ad0835e83ef00e9beb9ee59a40207355e40b9317 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 May 2024 17:53:14 -0700 Subject: [PATCH] Install vscode with a default config that matches default look --- configs/vscode.json | 26 ++++++++++++++++++++++++++ install/gui-apps.sh | 1 - install/vscode.sh | 5 +++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 configs/vscode.json create mode 100644 install/vscode.sh diff --git a/configs/vscode.json b/configs/vscode.json new file mode 100644 index 0000000..9827583 --- /dev/null +++ b/configs/vscode.json @@ -0,0 +1,26 @@ +{ + "editor.fontFamily": "CaskaydiaMono Nerd Font", + "editor.tabSize": 2, + "security.workspace.trust.untrustedFiles": "open", + "editor.minimap.enabled": false, + "git.ignoreMissingGitWarning": true, + "editor.fontSize": 12, + "editor.occurrencesHighlight": "off", + "editor.selectionHighlight": false, + "editor.suggestOnTriggerCharacters": false, + "editor.tabCompletion": "on", + "editor.quickSuggestions": { + "other": false, + "comments": false, + "strings": false + }, + "files.trimTrailingWhitespace": true, + "git.confirmSync": false, + "window.menuBarVisibility": "compact", + "git.autofetch": true, + "git.openRepositoryInParentFolders": "always", + "explorer.confirmDelete": false, + "extensions.ignoreRecommendations": true, + "workbench.colorTheme": "Tokyo Night", + "window.titleBarStyle": "custom" +} diff --git a/install/gui-apps.sh b/install/gui-apps.sh index 561cd98..2e06377 100644 --- a/install/gui-apps.sh +++ b/install/gui-apps.sh @@ -4,4 +4,3 @@ sudo snap install spotify sudo snap install zoom-client sudo snap install signal-desktop sudo snap install pinta -sudo snap install code --classic diff --git a/install/vscode.sh b/install/vscode.sh new file mode 100644 index 0000000..6c438d3 --- /dev/null +++ b/install/vscode.sh @@ -0,0 +1,5 @@ +if ! command -v code &>/dev/null; then + sudo snap install code --classic + mkdir -p ~/.config/Code/User + cp ~/.local/share/omakub/configs/vscode.json ~/.config/Code/User/settings.json +fi