I distinctly remember C# having a similar capability many years ago too.
Of course, this was in the hyper expensive Visual Studio Enterprise IDE, not something like VS Code, which high school me totally paid 4 grand for and didn't pirate at all.
These days, features like these are making it to free or cheap tools.