From 6f6820eb5e0e99299d04d1eded268de96bcd4163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sat, 15 Jun 2024 14:39:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(home/vscode)=20add=20some=20set?= =?UTF-8?q?tings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/vscode/default.nix | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/home/vscode/default.nix b/home/vscode/default.nix index 6f8473d..9c68c0d 100644 --- a/home/vscode/default.nix +++ b/home/vscode/default.nix @@ -21,9 +21,13 @@ usernamehw.errorlens ]; userSettings = { + "editor.formatOnSave" = true; + "editor.formatOnPaste" = true; + "files.insertFinalNewline" = true; + "files.trimTrailingWhitespace" = true; "editor.fontFamily" = "'FiraCode Nerd Font Mono', 'Noto Color Emoji'"; "editor.fontLigatures" = true; - "editor.formatOnSave" = true; + "editor.rulers" = [120]; "git.autofetch" = true; "git.confirmSync" = false; "git.enableSmartCommit" = true; @@ -46,9 +50,23 @@ "julia.symbolCacheDownload" = true; "terminal.integrated.commandsToSkipShell" = ["language-julia.interrupt"]; "diffEditor.ignoreTrimWhitespace" = false; - "editor.rulers" = [120]; "remote.SSH.useExecServer" = false; "python.analysis.typeCheckingMode" = "strict"; + "files.exclude" = { + # defaults + "**/.git" = true; + "**/.svn" = true; + "**/.hg" = true; + "**/CVS" = true; + "**/.DS_Store" = true; + "**/Thumbs.db" = true; + # annoying + "**/__pycache__" = true; + "**/.mypy_cache" = true; + "**/.ruff_cache" = true; + "**/*.egg-info" = true; + "**/.direnv" = true; + }; }; }; }