Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How to configure IntelliSense in Visual Studio Code? #1648

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

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

No branches or pull requests

2 participants