简体   繁体   English

如何在Visual Studio Code中配置IntelliSense

[英]How to configure IntelliSense in Visual Studio Code

How to configure IntelliSense in Visual Studio Code? 如何在Visual Studio Code中配置IntelliSense?

For example, lets consider the below code snippet. 例如,让我们考虑以下代码片段。

'use strict';

import React from 'react';
import ReactDOMServer from 'react-dom/server';

I would like the IntelliSense to suggests the available methods on React , when I press cmd + space after typing React. 我希望IntelliSense在键入React.后按cmd + space时建议React上的可用方法React. .

Is that possible? 那可能吗? If yes any pointer would be of great help. 如果是,则任何指针都将有很大帮助。

PS: PS:

I have already installed the dependent modules and updated the package.json and they are available at ./node_modules/ 我已经安装了dependent modules并更新了package.json ,它们可以在./node_modules/

https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/react tsd install react --save重新启动,然后,您就可以得到智能感知

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM