❔ 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
Isn't that what enums are for?
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
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.