From 211ef6e0470f6e7cb641fb3b745fb22730bb6dc9 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Thu, 5 Nov 2020 14:45:46 +0100 Subject: [PATCH] vscode: Use tabs per default, XDG & gitignore Use tabs instead of spaces per default. (VSCodium will still respect the indentation used in the file) Stop vscode from writing files in HOME. Since only the settings.json is versioned in this repo but the full folder is symlinked: Ignore all other files that will be written. (TODO: Only symlink file) --- .config/VSCodium/User/settings.json | 3 ++- .config/zsh/.zprofile | 3 +++ .gitignore | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.config/VSCodium/User/settings.json b/.config/VSCodium/User/settings.json index 9d0e7a0..67c1d1b 100644 --- a/.config/VSCodium/User/settings.json +++ b/.config/VSCodium/User/settings.json @@ -20,4 +20,5 @@ ], "workbench.activityBar.visible": false, "workbench.colorTheme": "One Dark Pro", -} \ No newline at end of file + "editor.insertSpaces": false, +} diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 13c56ae..0573c36 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -25,6 +25,9 @@ export ANDROID_EMULATOR_HOME="$XDG_DATA_HOME"/android/ export ADB_VENDOR_KEY="$XDG_CONFIG_HOME"/android export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android +export VSCODE_PORTABLE="$XDG_DATA_HOME"/vscode +export VSCODE_EXTENSIONS="$XDG_DATA_HOME"/vscode/extensions + # Other environment variables if [[ ! "$PATH" =~ "$HOME/\.local/bin" ]]; then export PATH="$HOME/.local/bin${PATH:+:$PATH}" diff --git a/.gitignore b/.gitignore index 8f6ca1c..cac6737 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,9 @@ # Ignore installation backups /existing-*.tar.gz +/.config/VSCodium +!/.config/VSCodium/User/settings.json + /.config/git/github.config /.config/git/gitlab.config /.config/git/user.config