visual-studio-code - vscode下如何设置node.js语法提示?
高洛峰
高洛峰 2017-04-17 16:23:17
0
1
552

就比如这样 process global这些都没有智能语法提示?
请问应该怎么弄,安装了几个插件也没有效果。

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
迷茫

Enable grammar prompts manually:

  1. Go to TypeSearch and search for the library you want to prompt (for example, yours is "node");

  2. Locate the location of the type in npm, and then follow the prompts to install the type (of course package.json must be prepared);

  3. 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).

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template