C
C#2y ago
whynot6745

❔ VS studio IntelliSense string autocomplete?

I want to make intellisense in c# visual studio 2022 provides suggestions for a specific set of strings when using a string parameter. just like in VSCode. maybe something like void SetColor([Suggest("red", "blue")]string color) { ... }
3 Replies
phaseshift
phaseshift2y ago
Isn't that what enums are for?
whynot6745
whynot6745OP2y ago
yes, but what about other things such as file path autocompletion, or more complex such as querying in a hierarchy GetNode("Parent/Child1/Child2"); would be much better with autocompletion
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server