add vscode
This commit is contained in:
89
.config/Code/User/keybindings.json
Normal file
89
.config/Code/User/keybindings.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
190
.config/Code/User/settings.json
Normal file
190
.config/Code/User/settings.json
Normal file
@@ -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",
|
||||||
|
}
|
||||||
9
sync.sh
9
sync.sh
@@ -43,6 +43,15 @@ get_system_path() {
|
|||||||
echo "$HOME_DIR/$rel_path"
|
echo "$HOME_DIR/$rel_path"
|
||||||
fi
|
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"
|
echo "$HOME_DIR/$rel_path"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user