microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
192 stars 6 forks source link

[SUGGESTION] Support for changing Active Build Configuration for better code editing experience #1037

Open niguiecandy opened 1 month ago

niguiecandy commented 1 month ago

Describe the feature you'd like

AFAIK, unlike Visual Studio or Rider, VS Code doesn't have 'Build Configuration Indicator' UI or anything that does the similar function.

If you have a C# solution with multiple build configurations, and if some of them contains a preprocessor symbols, it becomes a nightmare: you can't change the editor's ACTIVE build configurations to work with those preprocessed code paths. You have to manually edit the .csproj file to make it work.

C# Dev Kit should support for changing active build configuration in the editor.

*** If there is a way to do this, please let me know.

Alternatives considered

I have to manually edit .csproj files so that a Debug configuration contains the required preprocessor symbols when editing. I have to comment it out when building.

Environment Information

WIn 10, VS Code 1.87.2

jbevain commented 1 month ago

Duplicate of #67.

jvcdk commented 21 hours ago

+1: I need this as well :)

(Linux, VS Code 1.89.1)