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)
This commit is contained in:
2020-11-05 14:45:46 +01:00
parent 9d166a6097
commit 211ef6e047
3 changed files with 8 additions and 1 deletions

View File

@@ -20,4 +20,5 @@
],
"workbench.activityBar.visible": false,
"workbench.colorTheme": "One Dark Pro",
}
"editor.insertSpaces": false,
}

View File

@@ -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}"

3
.gitignore vendored
View File

@@ -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