From f29f4e28e1e4a115e03ff86b860fd8a7d50d8a44 Mon Sep 17 00:00:00 2001 From: Max Amundsen Date: Thu, 14 Aug 2025 15:09:08 -0400 Subject: [PATCH] add vscode --- .config/Code/User/keybindings.json | 89 ++++++++++++++ .config/Code/User/settings.json | 190 +++++++++++++++++++++++++++++ sync.sh | 9 ++ 3 files changed, 288 insertions(+) create mode 100644 .config/Code/User/keybindings.json create mode 100644 .config/Code/User/settings.json diff --git a/.config/Code/User/keybindings.json b/.config/Code/User/keybindings.json new file mode 100644 index 0000000..396503e --- /dev/null +++ b/.config/Code/User/keybindings.json @@ -0,0 +1,89 @@ +// Place your key bindings in this file to override the defaults +[ + { + "key": "cmd+=", + "command": "-workbench.action.zoomIn" + }, + { + "key": "cmd+=", + "command": "editor.action.fontZoomIn" + }, + { + "key": "cmd+-", + "command": "editor.action.fontZoomOut" + }, + { + "key": "cmd+-", + "command": "-workbench.action.zoomOut" + }, + { + "key": "cmd+0", + "command": "editor.action.fontZoomReset" + }, + { + "key": "cmd+0", + "command": "-workbench.action.focusSideBar" + }, + { + "key": "cmd+g", + "command": "workbench.action.gotoLine" + }, + { + "key": "ctrl+g", + "command": "-workbench.action.gotoLine" + }, + { + "key": "cmd+shift+a", + "command": "editor.action.selectHighlights" + }, + { + "key": "F7", + "command": "editor.action.format" + }, + { + "key": "cmd+\\", + "command": "runCommands", + "args": { + "commands": [ + "workbench.action.closeSidebar", + "workbench.action.closePanel", + ] + } + }, + { + "key": "cmd+shift+\\", + "command": "runCommands", + "args": { + "commands": [ + "workbench.action.closeSidebar", + "workbench.action.closePanel", + "workbench.action.closeEditorsInOtherGroups", + "workbench.action.closeOtherEditors" + ] + } + }, + { + "key": "alt+cmd+backspace", + "command": "-editor.action.removeBrackets", + }, + { + "key": "f6", + "command": "editor.action.organizeImports", + }, + { + "key": "shift+alt+o", + "command": "-editor.action.organizeImports", + }, + { + "key": "f1", + "command": "workbench.actions.view.problems", + }, + { + "key": "shift+cmd+m", + "command": "-workbench.actions.view.problems", + }, + { + "key": "f3", + "command": "go.languageserver.restart" + } +] diff --git a/.config/Code/User/settings.json b/.config/Code/User/settings.json new file mode 100644 index 0000000..d3983c5 --- /dev/null +++ b/.config/Code/User/settings.json @@ -0,0 +1,190 @@ +{ + "explorer.excludeGitIgnore": false, + "search.useParentIgnoreFiles": false, + "search.useIgnoreFiles": false, + "problems.visibility": false, + "editor.cursorStyle": "line", + "git.openRepositoryInParentFolders": "never", + "javascript.updateImportsOnFileMove.enabled": "always", + "explorer.confirmDragAndDrop": false, + "typescript.updateImportsOnFileMove.enabled": "always", + "window.commandCenter": false, + "workbench.layoutControl.enabled": false, + "editor.minimap.enabled": false, + "workbench.startupEditor": "none", + "editor.stickyScroll.enabled": false, + "editor.autoIndent": "keep", + "editor.wrappingIndent": "same", + "extensions.ignoreRecommendations": true, + "editor.parameterHints.enabled": false, + "editor.acceptSuggestionOnCommitCharacter": false, + "editor.quickSuggestions": { + "other": false, + "comments": false, + "strings": false + }, + "editor.suggestOnTriggerCharacters": false, + "editor.inlayHints.enabled": "off", + "editor.formatOnSave": false, + "terminal.integrated.allowChords": false, + "editor.autoClosingBrackets": "never", + "editor.autoClosingQuotes": "never", + "git.confirmSync": false, + "editor.cursorBlinking": "solid", + "breadcrumbs.enabled": true, + "editor.autoSurround": "never", + "editor.guides.indentation": false, + "editor.occurrencesHighlight": "off", + "editor.folding": false, + "editor.bracketPairColorization.enabled": false, + "scm.diffDecorations": "none", + "telemetry.telemetryLevel": "off", + "scm.diffDecorationsGutterAction": "none", + "files.trimTrailingWhitespace": true, + "scm.diffDecorationsGutterVisibility": "hover", + "html.autoCreateQuotes": false, + "[go]": { + "editor.formatOnSave": false, + "editor.codeActionsOnSave": { + "source.organizeImports": "never" + }, + }, + "[go.mod]": { + "editor.formatOnSave": false, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + } + }, + "[go][go.mod]": { + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + } + }, + "gopls": { + "ui.semanticTokens": true + }, + "extensions.autoCheckUpdates": false, + "extensions.autoUpdate": false, + "update.mode": "manual", + "window.density.editorTabHeight": "compact", + "C_Cpp.intelliSenseEngine": "disabled", + "C_Cpp.clang_format_style": "Visual Studio", + "diffEditor.ignoreTrimWhitespace": false, + "terminal.integrated.fontSize": 14, + "security.workspace.trust.untrustedFiles": "open", + "debug.onTaskErrors": "showErrors", + "explorer.confirmDelete": false, + "editor.tokenColorCustomizations": { + "textMateRules": [ + { + "scope": [ + "comment", + "comment.block", + "comment.block.documentation", + "comment.line", + "constant", + "constant.character", + "constant.character.escape", + "constant.numeric", + "constant.numeric.integer", + "constant.numeric.float", + "constant.numeric.hex", + "constant.numeric.octal", + "constant.other", + "constant.regexp", + "constant.rgb-value", + "emphasis", + "entity", + "entity.name", + "entity.name.class", + "entity.name.function", + "entity.name.method", + "entity.name.section", + "entity.name.selector", + "entity.name.tag", + "entity.name.type", + "entity.other", + "entity.other.attribute-name", + "entity.other.inherited-class", + "invalid", + "invalid.deprecated", + "invalid.illegal", + "keyword", + "keyword.control", + "keyword.operator", + "keyword.operator.new", + "keyword.operator.assignment", + "keyword.operator.arithmetic", + "keyword.operator.logical", + "keyword.other", + "markup", + "markup.bold", + "markup.changed", + "markup.deleted", + "markup.heading", + "markup.inline.raw", + "markup.inserted", + "markup.italic", + "markup.list", + "markup.list.numbered", + "markup.list.unnumbered", + "markup.other", + "markup.quote", + "markup.raw", + "markup.underline", + "markup.underline.link", + "meta", + "meta.block", + "meta.cast", + "meta.class", + "meta.function", + "meta.function-call", + "meta.preprocessor", + "meta.return-type", + "meta.selector", + "meta.tag", + "meta.type.annotation", + "meta.type", + "punctuation.definition.string.begin", + "punctuation.definition.string.end", + "punctuation.separator", + "punctuation.separator.continuation", + "punctuation.terminator", + "storage", + "storage.modifier", + "storage.type", + "string", + "string.interpolated", + "string.other", + "string.quoted", + "string.quoted.double", + "string.quoted.other", + "string.quoted.single", + "string.quoted.triple", + "string.regexp", + "string.unquoted", + "strong", + "support", + "support.class", + "support.constant", + "support.function", + "support.other", + "support.type", + "support.type.property-name", + "support.variable", + "variable", + "variable.language", + "variable.name", + "variable.other", + "variable.other.readwrite", + "variable.parameter" + ], + "settings": { + "fontStyle": "" + } + } + ] + }, + "git.suggestSmartCommit": false, + "editor.accessibilitySupport": "off", +} \ No newline at end of file diff --git a/sync.sh b/sync.sh index 13d6e3d..e8b1185 100755 --- a/sync.sh +++ b/sync.sh @@ -43,6 +43,15 @@ get_system_path() { echo "$HOME_DIR/$rel_path" fi ;; + .config/Code/User/*) + if [[ "$OSTYPE" == "darwin"* ]]; then + # Map .config/Code/User/* to ~/Library/Application Support/Code/User/* + local vscode_path="${rel_path#.config/Code/User/}" + echo "/Users/${USER}/Library/Application Support/Code/User/${vscode_path}" + else + echo "$HOME_DIR/$rel_path" + fi + ;; *) echo "$HOME_DIR/$rel_path" ;;