Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

visual studio code - NPM scripts not shown in Explorer sidebar. How to shwo them again?

I have this problem with Visual Studio Code for Windows 10: I can't see anymore the NPM scripts in explorer sidebar.

I deleted all the extensions, uninstalled VS Code cancelling also its folder and the extension folders, installed latest version of VS Code again with no custom options and no extensions, but it didn't solved my problem; the NPM scripts menu does not appear.

How could I fix this so that the NPM Scripts menu option is shown again?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Few places to look for the NPM-Scripts explorer :

The npm-scripts explorer can be enabled or disabled with the below settings, in VSCode's settings.json:

"npm.enableScriptExplorer": false Default value is false, change to true and it should work. Try restarting VSCode for changes to take effect(although a restart is not often required) if it doesn't show up.

Another very hard to notice place is the three dots ... in the top right corner of your project explorer (verify if NPM scripts is checked). This is something which I had experienced personally for a different extension.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...