Skip to content

Commit

Permalink
feat: update VS Code Settings according to new features
Browse files Browse the repository at this point in the history
  • Loading branch information
primeare committed Dec 13, 2023
1 parent 9aee114 commit b601fef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ fish_add_path "/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
alias c="clear"

# set Visual Studio Code as a default text editor
set -gx EDITOR code --wait --new-window
set -gx VISUAL code --wait --new-window
set --global --export EDITOR code --wait --new-window
set --global --export VISUAL code --wait --new-window

# manual Visual Studio Code shell integration
string match -q "$TERM_PROGRAM" "vscode"
Expand Down
28 changes: 19 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"editor.folding": false,
"editor.find.addExtraSpaceOnTop": false,
"editor.renderLineHighlight": "all",
"editor.multiDocumentOccurrencesHighlight": true,
"editor.occurrencesHighlight": "multiFile",
"editor.suggest.localityBonus": true,
"editor.suggest.preview": true,
"editor.suggestSelection": "first",
Expand Down Expand Up @@ -49,10 +49,10 @@
"editor.formatOnSaveMode": "modificationsIfAvailable",
"editor.codeActionWidget.includeNearbyQuickFixes": true,
"editor.codeActionsOnSave": {
"source.fixAll": false,
"source.fixAll.eslint": true,
"source.sortImports": true,
"source.addMissingImports": true
"source.fixAll": "never",
"source.fixAll.eslint": "explicit",
"source.sortImports": "explicit",
"source.addMissingImports": "explicit"
},

// Window
Expand All @@ -76,14 +76,17 @@
"workbench.editor.closeOnFileDelete": true,
"workbench.editor.defaultBinaryEditor": "hexEditor.hexedit",
"workbench.editor.historyBasedLanguageDetection": true,
"workbench.editor.tabCloseButton": "off",
"workbench.editor.tabActionCloseVisibility": false,
"workbench.editor.splitInGroupLayout": "horizontal",
"workbench.editor.preventPinnedEditorClose": "keyboardAndMouse",
"workbench.editor.pinnedTabsOnSeparateRow": true,
"workbench.editor.doubleClickTabToToggleEditorGroupSizes": "maximize",
"workbench.editor.limit.enabled": true,
"workbench.editor.limit.perEditorGroup": true,
"workbench.editor.limit.value": 7,
"workbench.editor.dragToOpenWindow": false,
"workbench.tree.enableStickyScroll": true,
"workbench.tree.stickyScrollMaxItemCount": 7,
"workbench.tree.renderIndentGuides": "always",
"workbench.settings.enableNaturalLanguageSearch": false,
"workbench.commandPalette.preserveInput": true,
Expand Down Expand Up @@ -141,8 +144,9 @@
// Terminal
"terminal.explorerKind": "external",
"terminal.integrated.defaultProfile.osx": "fish",
"terminal.integrated.shellIntegration.enabled": true,
"terminal.integrated.shellIntegration.enabled": false,
"terminal.integrated.shellIntegration.decorationsEnabled": "both",
"terminal.integrated.shellIntegration.suggestEnabled": true,
"terminal.integrated.fontFamily": "Fira Code, monospace",
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.cursorStyleInactive": "none",
Expand All @@ -157,6 +161,7 @@
"terminal.integrated.customGlyphs": true,
"terminal.integrated.enableBell": true,
"terminal.integrated.hideOnStartup": "whenEmpty",
"terminal.integrated.stickyScroll.enabled": true,
"terminal.integrated.autoReplies": {
"Terminate batch job (Y/N)": "Y\r"
},
Expand All @@ -166,6 +171,8 @@

// Audio Cues
"audioCues.onDebugBreak": "on",
"audioCues.terminalCommandFailed": "on",
"audioCues.terminalQuickFix": "on",

// Debug
"debug.inlineValues": "on",
Expand Down Expand Up @@ -211,6 +218,7 @@
"diffEditor.diffAlgorithm": "advanced",
"diffEditor.useInlineViewWhenSpaceIsLimited": false,
"diffEditor.experimental.showMoves": true,
"multiDiffEditor.experimental.enabled": true,

// Merge Editor
"mergeEditor.diffAlgorithm": "advanced",
Expand Down Expand Up @@ -248,14 +256,14 @@
"javascript.preferences.quoteStyle": "single",
"javascript.preferences.importModuleSpecifier": "shortest",
"javascript.preferences.importModuleSpecifierEnding": "js",
"javascript.preferences.renameMatchingJsxTags": true,
"javascript.inlayHints.enumMemberValues.enabled": true,
"javascript.inlayHints.functionLikeReturnTypes.enabled": true,
"javascript.inlayHints.parameterNames.enabled": "all",
"javascript.inlayHints.parameterTypes.enabled": true,
"javascript.inlayHints.propertyDeclarationTypes.enabled": true,
"javascript.inlayHints.variableTypes.enabled": true,
"javascript.referencesCodeLens.enabled": true,
"javascript.preferences.renameMatchingJsxTags": true,
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
Expand All @@ -269,6 +277,8 @@
"typescript.preferences.importModuleSpecifier": "shortest",
"typescript.preferences.importModuleSpecifierEnding": "auto",
"typescript.preferences.includePackageJsonAutoImports": "on",
"typescript.preferences.renameMatchingJsxTags": true,
"typescript.preferences.preferTypeOnlyAutoImports": true,
"typescript.inlayHints.enumMemberValues.enabled": true,
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"typescript.inlayHints.parameterNames.enabled": "all",
Expand All @@ -277,7 +287,7 @@
"typescript.inlayHints.variableTypes.enabled": true,
"typescript.referencesCodeLens.enabled": true,
"typescript.implementationsCodeLens.enabled": true,
"typescript.preferences.renameMatchingJsxTags": true,
"typescript.workspaceSymbols.excludeLibrarySymbols": true,

// HTML & Handlebars
"html.format.unformatted": null,
Expand Down

0 comments on commit b601fef

Please sign in to comment.