就比如这样 process global这些都没有智能语法提示?
请问应该怎么弄,安装了几个插件也没有效果。
迷茫2017-04-17 16:25:17
Enable grammar prompts manually:
Go to TypeSearch and search for the library you want to prompt (for example, yours is "node");
Locate the location of the type in npm, and then follow the prompts to install the type (of course package.json must be prepared);
Use import in the file to quote, see; or directly extract the d.ts file in the newly installed type and rename it, and then use the triple slash command /// <reference types="./nodejs.d.ts" />
to quote in the file (actually, this is how I usually write js) quoted).