{"id":19751993,"url":"https://github.com/colbylwilliams/vscode-tips","last_synced_at":"2026-06-09T18:31:05.992Z","repository":{"id":246474329,"uuid":"820633430","full_name":"colbylwilliams/vscode-tips","owner":"colbylwilliams","description":"Useful tips \u0026 tricks for Visual Studio Code. Mostly for me, but public so others might enjoy.","archived":false,"fork":false,"pushed_at":"2024-06-28T07:40:27.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T08:44:00.340Z","etag":null,"topics":["dotnet","tips","tips-and-tricks","visual-studio-code","vscode"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colbylwilliams.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-26T21:40:13.000Z","updated_at":"2024-06-28T07:42:52.000Z","dependencies_parsed_at":"2024-06-28T06:48:27.845Z","dependency_job_id":"93c04408-9445-432c-b7c6-c4fb41637246","html_url":"https://github.com/colbylwilliams/vscode-tips","commit_stats":null,"previous_names":["colbylwilliams/vscode-tips"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/colbylwilliams/vscode-tips","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2Fvscode-tips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2Fvscode-tips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2Fvscode-tips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2Fvscode-tips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colbylwilliams","download_url":"https://codeload.github.com/colbylwilliams/vscode-tips/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colbylwilliams%2Fvscode-tips/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34121020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","tips","tips-and-tricks","visual-studio-code","vscode"],"created_at":"2024-11-12T02:47:19.188Z","updated_at":"2026-06-09T18:31:05.972Z","avatar_url":"https://github.com/colbylwilliams.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# vscode-tips\n\nUseful tips \u0026 tricks for Visual Studio Code. Mostly for me, but public so others might enjoy.\n\n\u003e [!Important]\n\u003e I'm on a mac, results may vary\n\n## .NET Logging\n\n\u003e Full set of tips at [`/dotnet/logging.md`](/dotnet/logging.md)\n\nIn vs code, [debug provider][dotnet-logging-debug-provider] and the [console provider][dotnet-logging-console-provider] both log to the [debug console][vscode-debug-console]. This ends up duplicating all the logs, in different formats, which makes it difficult to read and understand. To make things worse they're not [in color](/dotnet/logging.md#add-some-color) :roll_eyes:.\n\nI've spent way too much time figuring out how to go from this:\n\n![debug_console_log](./img/debug_console_log.png)\n\nTo this:\n\n![console_log_allow_ansi_single_line](./img/console_log_allow_ansi_single_line.png)\n\nIf you're interested in doing the same (or something in between), check out [`/dotnet/logging.md`](/dotnet/logging.md)\n\n### Other settings\n\nI've found that a couple more settings will reduce the noise in your logs when developing locally:\n\n```jsonc\n//settings.json\n{\n  \"csharp.debug.logging.moduleLoad\": false,\n  \"csharp.debug.logging.exceptions\": false\n}\n```\n\n## Settings\n\nI'm not trying to tell you how to live your life. But here are some settings that I've found make life more delightful _(and more importantly, get the stuff that I don't care about, out of my way)_.\n\n### :mag: Explorer settings\n\nHere are some **Explorer** settings that I find useful for .NET:\n\n```jsonc\n// settings.json\n{\n  \"explorer.fileNesting.enabled\": true,\n  \"explorer.fileNesting.expand\": false,\n  \"explorer.fileNesting.patterns\": {\n    // global\n    \"README.md\": \".gitignore, .gitattributes, LICENSE, SECURITY.md, SUPPORT.md, CODE_OF_CONDUCT.md\",\n    \"dockerfile\": \".dockerignore\",\n    // ts, js\n    \".env\": \".env.development, .env.production\",\n    \"*.tsx\": \"${capture}.ts, ${capture}.test.tsx, ${capture}.css\",\n    \".*rc.yml\": \".${capture}ignore\",\n    \".*rc.js\": \".${capture}ignore\",\n    // .net\n    \"*.cs\": \"I${capture}.cs,\",\n    \"*.csproj\": \"appsettings.json, dockerfile, host.json, local.settings.json, .gitignore\",\n    \"appsettings.json\": \"appsettings.development.json, appsettings.production.json\"\n  }\n}\n```\n\n_The new C# DevKit has a pretty nice Explorer, but since I bounce around to different programming languages (and I've taken the time to set up vscode's Explorer just the way I like it), I tend to use vscode's Explorer._\n\n### :file_cabinet: Files settings\n\n```jsonc\n// settings.json\n{\n  // see-ya squigglies\n  \"files.associations\": {\n    \"appsettings.*.json\": \"jsonc\",\n    \"local.settings.json\": \"jsonc\",\n    \"launchSettings.json\": \"jsonc\"\n  },\n  \"files.exclude\": {\n    \"**/.vs\": true,\n    \"**/bin\": true,\n    \"**/obj\": true,\n    \"**/.git\": true,\n    \"**/.DS_Store\": true,\n    \"**/__pycache__\": true,\n    \"**/**.dist-info\": true,\n    \"**/node_modules\": true\n  }\n}\n```\n\n### :pencil2: Editor settings\n\nI've found that all of the tool trying to help me type my next line of code, end up competing and creating a poor experience. The editor settings below are just a subset of my editor settings, but these are the settings that I've found make my active coding experience most efficient (i.e. I can intuitively accept suggestions from intellicode or copilot):\n\n```jsonc\n{\n  \"editor.emptySelectionClipboard\": false, // why the hell is this even a thing\n  \"editor.acceptSuggestionOnCommitCharacter\": false,\n  \"editor.inlineSuggest.enabled\": true,\n  \"editor.parameterHints.cycle\": true,\n  \"editor.suggest.localityBonus\": true,\n  \"editor.suggest.preview\": true,\n  \"editor.suggest.matchOnWordStartOnly\": false,\n  \"editor.suggest.showStatusBar\": true,\n  \"editor.suggestSelection\": \"first\",\n  \"editor.snippetSuggestions\": \"bottom\",\n  \"editor.tabCompletion\": \"on\",\n\n  \"github.copilot.editor.enableAutoCompletions\": true,\n\n  \"editor.minimap.autohide\": true,\n  \"editor.minimap.enabled\": false, // I tend to toggle this\n  \"editor.minimap.showSlider\": \"always\"\n}\n```\n\n#### :straight_ruler: Rulers\n\nI write a lot of code that ends up on GitHub; prototypes, samples, customer development, etc.\u003cbr/\u003e\nOn github.com depending on settings this sentence should be just about full-with across the readme without wrapping.\n\n```yaml\n# and the first line just fits in a code block\nI write a lot of code that ends up on GitHub; prototypes, samples, customer development, etc.\n```\n\nThis is what these rulers are for. They represent (approx) widths of different renderings on github.com (gists, readme, classic code view, etc.). You'll may need to change the color.\n\n```jsonc\n// settings.json\n{\n  \"editor.rulers\": [\n    { \"column\": 99, \"color\": \"#2e2e2e\" },\n    { \"column\": 112, \"color\": \"#2e2e2e\" },\n    { \"column\": 117, \"color\": \"#2e2e2e\" },\n    { \"column\": 139, \"color\": \"#2e2e2e\" },\n    { \"column\": 177, \"color\": \"#2e2e2e\" },\n    { \"column\": 250, \"color\": \"#2e2e2e\" }\n  ]\n}\n```\n\n[dotnet-logging-console-provider]: https://learn.microsoft.com/aspnet/core/fundamentals/logging/#console\n[dotnet-logging-debug-provider]: https://learn.microsoft.com/aspnet/core/fundamentals/logging/#debug\n[vscode-debug-console]: https://code.visualstudio.com/docs/editor/debugging\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolbylwilliams%2Fvscode-tips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolbylwilliams%2Fvscode-tips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolbylwilliams%2Fvscode-tips/lists"}