Skip to content

Commit

Permalink
VS Code tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
statico committed Sep 8, 2023
1 parent 43b3665 commit a1eb206
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 69 deletions.
30 changes: 30 additions & 0 deletions .vscode-mac.keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,35 @@
{
"key": "ctrl+cmd+down",
"command": "workbench.action.positionPanelBottom"
},
{
"key": "ctrl+cmd+j",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+down",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+cmd+k",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+up",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
}
]
149 changes: 80 additions & 69 deletions .vscode-mac.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"editor.bracketPairColorization.enabled": true,
"editor.cursorBlinking": "solid",
"editor.cursorStyle": "line",
"editor.fontFamily": "Iosevka Term Light",
"editor.fontFamily": "Iosevka Term",
"editor.fontLigatures": true,
"editor.glyphMargin": false,
"editor.insertSpaces": false,
Expand All @@ -37,15 +37,14 @@
"editor.renderLineHighlight": "none",
"editor.renderWhitespace": "none",
"editor.scrollbar.verticalScrollbarSize": 8,
"editor.snippetSuggestions": "bottom",
"editor.suggest.localityBonus": true,
"editor.suggestSelection": "first",
"editor.tabCompletion": "on",
"editor.tabSize": 2,
"editor.tokenColorCustomizations": {
"[Nord]": {
"comments": "#616e88"
}
},
},
"editor.wordBasedSuggestionsMode": "currentDocument",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
Expand Down Expand Up @@ -79,53 +78,9 @@
"git.confirmSync": false,
"git.enableSmartCommit": true,
"git.path": "/usr/local/bin/git",
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.recentChange.enabled": false,
"gitlens.menus": {
"editor": {
"blame": false,
"clipboard": true,
"compare": true,
"history": false,
"remote": false
},
"editorGroup": false,
"editorTab": {
"clipboard": true,
"compare": true,
"history": true,
"remote": true
},
"explorer": {
"clipboard": true,
"compare": true,
"history": true,
"remote": true
},
"scm": {
"authors": true
},
"scmGroup": {
"compare": true,
"openClose": true,
"stash": true
},
"scmGroupInline": {
"stash": true
},
"scmItem": {
"clipboard": true,
"compare": true,
"history": true,
"remote": false,
"stash": true
}
},
"gitlens.statusBar.enabled": false,
"javascript.suggest.completeJSDocs": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"markdown.preview.fontSize": 16,
"pgFormatter.spaces": 2,
"php.suggest.basic": false,
"references.preferredLocation": "view",
"remote.containers.dotfiles.installCommand": "~/.dotfiles/install.zsh",
Expand All @@ -135,6 +90,7 @@
"rest-client.fontSize": 13,
"scrolloff.scrolloff": 10,
"search.exclude": {
"**/*.{png,jpeg,jpg,svg}": true,
"**/*.js.snap": true,
"**/*.ts.snap": true,
"**/yaml.lock": true
Expand All @@ -150,35 +106,80 @@
"vim.neovimPath": "/opt/homebrew/bin/nvim",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["j"],
"commands": ["cursorDown"]
"before": [
"j"
],
"commands": [
"cursorDown"
]
},
{
"before": ["k"],
"commands": ["cursorUp"]
"before": [
"k"
],
"commands": [
"cursorUp"
]
},
{
"before": [";"],
"commands": ["workbench.action.quickOpen"]
"before": [
";"
],
"commands": [
"workbench.action.quickOpen"
]
},
{
"before": [
"leader",
"w"
],
"after": [
"leader",
"leader",
"w"
]
},
{
"before": [
"leader",
"b"
],
"after": [
"leader",
"leader",
"b"
]
},
{
"before": [
"leader",
"s"
],
"after": [
"leader",
"leader",
"s"
]
}
],
"vscode-graphql.showExecCodelens": false,
"workbench.activityBar.visible": false,
"workbench.startupEditor": "none",
"terminal.integrated.macOptionIsMeta": true,
"editor.foldingImportsByDefault": true,
"editor.lineHeight": 1.2,
"debug.javascript.autoAttachFilter": "disabled",
"go.toolsManagement.autoUpdate": true,
"editor.formatOnSave": true,
"git.useEditorAsCommitInput": false,
"window.commandCenter": true,
"zenMode.fullScreen": false,
"vim.argumentObjectClosingDelimiters": [")", "]", "\""],
"vim.argumentObjectClosingDelimiters": [
")",
"]",
"\""
],
"typescript.preferences.jsxAttributeCompletionStyle": "none",
"workbench.editor.tabSizing": "shrink",
"workbench.editor.tabCloseButton": "off",
"jest.jestCommandLine": "yarn test -- --detectOpenHandles",
"git.mergeEditor": true,
"[css]": {
"editor.formatOnSave": false,
Expand All @@ -193,22 +194,32 @@
"plaintext": false,
"markdown": true
},
"javascript.autoClosingTags": false,
"editor.autoSurround": "never",
"editor.autoClosingQuotes": "never",
"editor.autoClosingBrackets": "never",
"terminal.integrated.tabs.enabled": false,
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.minimap.enabled": false,
"aws.telemetry": false,
"aws.suppressPrompts": {
"regionAddAutomatically": true
},
"git.openRepositoryInParentFolders": "never",
"workbench.colorTheme": "Horizon Default",
"window.zoomLevel": 1,
"editor.fontSize": 14,
"editor.showFoldingControls": "never",
"editor.guides.indentation": false,
"editor.lineNumbers": "off"
}
"editor.lineNumbers": "off",
"update.showReleaseNotes": false,
"editor.fontSize": 15,
"explorer.autoRevealExclude": {
"**/dist": true
},
"vim.easymotion": true,
"vim.easymotionDimBackground": false,
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.colorTheme": "Horizon Default",
"workbench.colorCustomizations": {
"[Horizon Default]": {
"sideBar.border": "#272833",
"terminal.border": "#272833",
"panel.border": "#272833",
}
},
"outline.collapseItems": "alwaysCollapse"
}
12 changes: 12 additions & 0 deletions .vscode-snippets/typescriptreact.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
"console.log(\"XXX\", $1)",
],
},
"XXX Debug Stringify": {
"prefix": "xxs",
"body": [
"console.log(\"XXX\", JSON.stringify($1, null, 2))",
],
},
"YYY Debug": {
"prefix": "yyy",
"body": [
Expand All @@ -22,6 +28,12 @@
"console.log(\"ZZZ\", $1)",
],
},
"Stringify": {
"prefix": "sss",
"body": [
"<Stringify>{$1}</Stringify>",
],
},
"console.log": {
"prefix": "clog",
"body": [
Expand Down

0 comments on commit a1eb206

Please sign in to comment.