TSLint does display unused method warning. VS Code grays out symbol to let you know that it is not used anywhere. If symbol is exported or marked as public then it goes away.
For classes, it does display same warning for unused private method.
In order to get it working, Please install "TSLint" extension in VS Code and install TSLint globally on npm install -g tslint.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
TSLint does display unused method warning. VS Code grays out symbol to let you know that it is not used anywhere. If symbol is exported or marked as public then it goes away.
For classes, it does display same warning for unused private method.
In order to get it working, Please install "TSLint" extension in VS Code and install TSLint globally on
npm install -g tslint
.Yes, but VS Code cannot show unused public methods in classes but WebStorm can
Can you give me an example with code?
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.