Skip to content

How to configure IntelliSense in Visual Studio Code? #1648

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
sarbbottam opened this issue Dec 25, 2015 · 4 comments
Closed

How to configure IntelliSense in Visual Studio Code? #1648

sarbbottam opened this issue Dec 25, 2015 · 4 comments

Comments

@sarbbottam
Copy link

How to configure IntelliSense in Visual Studio Code?

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

Is that possible? If yes any pointer would be of great help.

PS:

I have already installed the dependent modules and updated the package.json and they are available at ./node_modules/


Raised it at StackOverflow a month ago.

@meritozh
Copy link

https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/react

tsd install react  --save

Restart, then, you can get intellisense

@sarbbottam
Copy link
Author

Thanks @meritozh, is there no way to achieve it w/o tsd?

@meritozh
Copy link

@sarbbottam You must need *.d.ts files, so you can get the definitions directly from the Github repos. tsd is just a tool. If you want implement intellisense without something like a (typescript) definition file, you can see these issues: #957 and microsoft/TypeScript#4789

@sarbbottam
Copy link
Author

Almost duplicate of #957

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants