Webstorm looks if public method is used within other classes in your project or in some HTML template (ie Angular). If the method is not used anywhere in the project, it gives you a warning.
I guess VS Code, doesn't have a "project" concept as such.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.