Skip to content

Instantly share code, notes, and snippets.

@jeangatto
Last active February 9, 2025 11:47
Show Gist options
  • Save jeangatto/3cf79a28ab989a07ac22c9d35ece8789 to your computer and use it in GitHub Desktop.
Save jeangatto/3cf79a28ab989a07ac22c9d35ece8789 to your computer and use it in GitHub Desktop.
VS Code Settings (for C#, 2025-02)
{
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[csharp]": {
"editor.codeActionsOnSave": ["source.organizeImports"]
},
// Telemetry Settings
"redhat.telemetry.enabled": false,
"telemetry.telemetryLevel": "off",
// https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-runtime
"dotnetAcquisitionExtension.enableTelemetry": false,
"dotnetAcquisitionExtension.enablePreviewFeatures": true,
// .NET
// https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp
"dotnet.autoInsert.enableAutoInsert": true,
"dotnet.automaticallySyncWithActiveItem": true,
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": "fullSolution",
"dotnet.backgroundAnalysis.compilerDiagnosticsScope": "fullSolution",
"dotnet.codeLens.enableReferencesCodeLens": true,
"dotnet.codeLens.enableTestsCodeLens": true,
"dotnet.completion.provideRegexCompletions": true,
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
"dotnet.completion.showNameCompletionSuggestions": true,
"dotnet.completion.triggerCompletionInArgumentLists": true,
"dotnet.enableXamlTools": true,
"dotnet.formatting.organizeImportsOnFormat": true,
"dotnet.highlighting.highlightRelatedJsonComponents": true,
"dotnet.highlighting.highlightRelatedRegexComponents": true,
"dotnet.navigation.navigateToDecompiledSources": true,
"dotnet.preferCSharpExtension": false,
"dotnet.projects.enableAutomaticRestore": true,
"dotnet.quickInfo.showRemarksInQuickInfo": true,
"dotnet.server.useOmnisharp": false,
"dotnet.server.useServerGC": true,
"dotnet.typeMembers.memberInsertionLocation": "atTheEnd",
"dotnet.typeMembers.propertyGenerationBehavior": "preferAutoProperties",
"dotnet.unitTestDebuggingOptions": { "logging": { "moduleLoad": false } },
"dotnet.useLegacyDotnetResolution": true,
// C#
// https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp
"csharp.debug.expressionEvaluationOptions.allowFastEvaluate": true,
"csharp.debug.expressionEvaluationOptions.allowImplicitFuncEval": true,
"csharp.debug.expressionEvaluationOptions.allowToString": true,
"csharp.debug.expressionEvaluationOptions.showRawValues": true,
"csharp.debug.hotReloadOnSave": true,
"csharp.debug.hotReloadVerbosity": "minimal",
"csharp.debug.logging.consoleUsageMessage": true,
"csharp.debug.logging.moduleLoad": false,
"csharp.experimental.debug.hotReload": true,
"csharp.format.enable": true,
"csharp.preview.improvedLaunchExperience": true,
"csharp.semanticHighlighting.enabled": true,
// C# Organize Usings
// https://marketplace.visualstudio.com/items?itemName=jeremycaron.csharp-organize-usings
"csharpOrganizeUsings.numEmptyLinesBeforeUsings": 0,
"csharpOrganizeUsings.splitGroups": false,
// Copilot
"github.copilot.chat.completionContext.typescript.mode": "on",
"github.copilot.chat.edits.codesearch.enabled": true,
"github.copilot.chat.edits.suggestRelatedFilesForTests": true,
"github.copilot.chat.fixTestFailure.enabled": true,
"github.copilot.chat.generateTests.codeLens": true,
"github.copilot.chat.setupTests.enabled": true,
"github.copilot.editor.enableAutoCompletions": true,
"github.copilot.editor.enableCodeActions": true,
"github.copilot.nextEditSuggestions.enabled": true,
"github.copilot.renameSuggestions.triggerAutomatically": true,
"github.copilot.chat.reviewSelection.enabled": true,
// Debug Settings
"debug.confirmOnExit": "never",
"debug.console.fontFamily": "JetBrainsMono NFM",
"debug.console.fontSize": 16,
"debug.onTaskErrors": "abort",
"debug.terminal.clearBeforeReusing": true,
// Editor Settings
"editor.accessibilitySupport": "off",
"editor.bracketPairColorization.enabled": true,
"editor.bracketPairColorization.independentColorPoolPerBracketType": false,
"editor.foldingHighlight": true,
"editor.guides.highlightActiveBracketPair": true,
"editor.smoothScrolling": true,
"editor.codeActionsOnSave": {
"source.fixAll": "never",
"source.fixAll.eslint": "never",
"source.formatDocument": "always",
"source.organizeImports": "always"
},
"editor.codeLens": true,
"editor.codeLensFontFamily": "JetBrainsMono NFM",
"editor.codeLensFontSize": 14,
"editor.fontFamily": "JetBrainsMono NFM",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.fontWeight": "normal",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.inlayHints.fontFamily": "JetBrainsMono NFM",
"editor.inlayHints.fontSize": 13,
"editor.letterSpacing": 0,
"editor.linkedEditing": true,
"editor.minimap.enabled": false,
"editor.minimap.renderCharacters": false,
"editor.quickSuggestionsDelay": 5,
"editor.rename.enablePreview": true,
"editor.rulers": [{ "column": 120, "color": "#3b3b3b" }],
"editor.semanticHighlighting.enabled": true,
"editor.snippetSuggestions": "top",
"editor.stickyScroll.defaultModel": "outlineModel",
"editor.stickyScroll.enabled": true,
"editor.stickyScroll.scrollWithEditor": true,
"editor.suggest.matchOnWordStartOnly": true,
// Explorer Settings
"explorer.compactFolders": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.confirmPasteNative": false,
"explorer.fileNesting.enabled": true,
// Extensions Settings
"extensions.autoCheckUpdates": true,
"extensions.autoUpdate": true,
"extensions.ignoreRecommendations": true,
// Prettier Settings
"prettier.arrowParens": "avoid",
"prettier.bracketSpacing": true,
"prettier.enable": true,
"prettier.endOfLine": "lf", // Unix
"prettier.printWidth": 120,
"prettier.semi": true,
"prettier.singleQuote": true,
// Files Settings
"files.autoSave": "afterDelay",
"files.eol": "\n",
"files.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/.hg": true,
"**/.svn": true,
"**/Bin/": true,
"**/bin/": true,
"**/obj/": true,
"**/Obj/": true,
"**/CVS": true,
"**/Thumbs.db": true,
"**/node_modules/": true,
"**/.vs/": true
},
// Git Settings
"git.autofetch": true,
"git.autorefresh": true,
"git.confirmSync": false,
"git.enabled": true,
"git.enableSmartCommit": true,
"git.enableStatusBarSync": true,
"git.fetchOnPull": true,
"git.ignoreRebaseWarning": true,
"git.mergeEditor": true,
"git.openRepositoryInParentFolders": "never",
"git.optimisticUpdate": true,
"git.pruneOnFetch": true,
// GitLens
// https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens
"gitlens.advanced.fileHistoryShowAllBranches": true,
"gitlens.advanced.fileHistoryShowMergeCommits": true,
"gitlens.telemetry.enabled": false,
"gitlens.views.branches.showRemoteBranches": true,
// Markdown Settings
"markdown.occurrencesHighlight.enabled": true,
"markdown.trace.extension": "off",
"markdown.updateLinksOnFileMove.enabled": "always",
"markdown.validate.enabled": true,
// JavaScript Settings
"javascript.autoClosingTags": true,
"javascript.format.enable": true,
"javascript.preferences.renameMatchingJsxTags": true,
"javascript.referencesCodeLens.enabled": true,
"javascript.referencesCodeLens.showOnAllFunctions": true,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
// Typescript Settings
"typescript.autoClosingTags": true,
"typescript.check.npmIsInstalled": true,
"typescript.format.enable": true,
"typescript.implementationsCodeLens.enabled": true,
"typescript.referencesCodeLens.enabled": true,
"typescript.referencesCodeLens.showOnAllFunctions": true,
"typescript.suggest.autoImports": true,
"typescript.tsserver.log": "off",
"typescript.updateImportsOnFileMove.enabled": "always",
// IntelliCode Completion Settings
"intellicodeCompletions.language.javascript": true,
"intellicodeCompletions.language.python": true,
"intellicodeCompletions.language.typescript": true,
// IntelliCode Settings
"vsintellicode.java.completionsEnabled": true,
"vsintellicode.python.completionsEnabled": true,
"vsintellicode.sql.completionsEnabled": true,
"vsintellicode.typescript.completionsEnabled": true,
// Search Settings
"search.showLineNumbers": true,
// Source Control Settings
"scm.diffDecorationsGutterPattern": { "added": true, "modified": true },
// Terminal Settings
"terminal.explorerKind": "integrated",
"terminal.integrated.confirmOnKill": "never",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "underline",
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.enableMultiLinePasteWarning": "never",
"terminal.integrated.fontFamily": "MesloLGMDZ Nerd Font",
"terminal.integrated.fontSize": 16,
"terminal.integrated.hideOnStartup": "always",
"terminal.integrated.letterSpacing": 0,
"terminal.integrated.shellIntegration.enabled": true,
// XML Settings
"xml.validation.noGrammar": "ignore",
// Worbench Settings
"workbench.startupEditor": "none",
"workbench.commandPalette.experimental.suggestCommands": true,
"workbench.editor.closeOnFileDelete": true,
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.titleScrollbarSizing": "large",
"workbench.colorTheme": "Default Dark+"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment