Configuration
Extension Settings
Configure C# Dev Tools to match your development preferences.
Accessing Settings
Section titled “Accessing Settings”There are several ways to access C# Dev Tools settings:
- VS Code Settings: Press
Ctrl+,(orCmd+,on macOS) and search for “csharp-dev-tools” - Command Palette: Press
Ctrl+Shift+Pand type “Settings: Open Settings (UI)” - Solution Explorer: Click the gear icon in the Solution Explorer title bar
Solution Explorer Settings
Section titled “Solution Explorer Settings”General Settings
Section titled “General Settings”| Setting | Description | Default |
|---|---|---|
csharp-dev-tools.solutionViewer.trackActiveFile | Automatically reveal and select the active file in the Solution Explorer | true |
csharp-dev-tools.solutionViewer.collapseOtherPaths | When tracking active file, collapse all other expanded paths | false |
Editor Settings
Section titled “Editor Settings”Unused Symbol Highlighting
Section titled “Unused Symbol Highlighting”| Setting | Description | Default |
|---|---|---|
csharp-dev-tools.editor.highlightUnusedSymbols | Enable or disable unused symbol highlighting | true |
csharp-dev-tools.editor.unusedSymbolOpacity | Opacity level for unused symbols (0.1 = very faded, 1.0 = normal) | 0.5 |
Inlay Hints Settings
Section titled “Inlay Hints Settings”| Setting | Description | Default |
|---|---|---|
csharp-dev-tools.inlayHints.enableTypeHints | Show inlay type hints for C# var declarations | true |
csharp-dev-tools.inlayHints.enableParameterHints | Show inlay parameter name hints for C# method calls | false |
Debug Settings
Section titled “Debug Settings”| Setting | Description | Default |
|---|---|---|
csharp-dev-tools.debug.launchConsole | Controls where console applications are launched when debugging | integratedTerminal |
Options for launchConsole:
integratedTerminal: Launch in VS Code’s integrated terminalinternalConsole: Launch in VS Code’s Debug ConsoleexternalTerminal: Launch in an external terminal window
Color Customization
Section titled “Color Customization”You can customize the colors used by C# Dev Tools:
{ "workbench.colorCustomizations": { "csharpStuff.inlayHints.typeColor": "#4FC1FF" }}Available color settings:
| Setting | Description | Default (Dark Theme) |
|---|---|---|
csharpStuff.inlayHints.typeColor | Color for type names in inlay hints | #4FC1FF |
Configuration Through JSON
Section titled “Configuration Through JSON”For advanced configuration, you can directly edit the VS Code settings.json file:
- Open the Command Palette (
Ctrl+Shift+P) - Type “Preferences: Open Settings (JSON)”
- Add or modify the C# Dev Tools settings:
{ "csharp-dev-tools.solutionViewer.trackActiveFile": true, "csharp-dev-tools.solutionViewer.collapseOtherPaths": false, "csharp-dev-tools.editor.highlightUnusedSymbols": true, "csharp-dev-tools.editor.unusedSymbolOpacity": 0.5, "csharp-dev-tools.inlayHints.enableTypeHints": true, "csharp-dev-tools.inlayHints.enableParameterHints": false, "csharp-dev-tools.debug.launchConsole": "integratedTerminal"}Workspace-Specific Settings
Section titled “Workspace-Specific Settings”You can configure C# Dev Tools differently for each workspace:
- Open the Command Palette (
Ctrl+Shift+P) - Type “Preferences: Open Workspace Settings”
- Search for “csharp-dev-tools” and adjust settings as needed
- These settings will only apply to the current workspace
Settings Inheritance
Section titled “Settings Inheritance”Settings are applied in this order:
- Default settings
- User settings (global)
- Workspace settings
- Folder settings
Later settings override earlier ones.