Jump to content

how to make IntelliSense (Visual Studio Code) recognize more than one file?


securet
 Share

Recommended Posts

how to make IntelliSense (Visual Studio Code) recognize more than one file?

Visual Studio Code offers me code completion for the file I'm working on, but not for any further files in the folder.

I created a jsconfig.json file, but I don't know, what the content of the file should be.

Is there any step by step instruction ?

I found this by google: https://code.visualstudio.com/Docs/languages/javascript . But I dont't get what they want me to do in order to get it working. 

Link to comment
Share on other sites

Try to add this in the top of your javascript file:

/// <reference path="D:\path\to\script\script.js" />

The reference should be to the full commented file, not the minified. It must be in every js file you need intellisense and for every file you need.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...