securet Posted December 8, 2016 Share Posted December 8, 2016 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. Quote Link to comment Share on other sites More sharing options...
bruno_ Posted December 8, 2016 Share Posted December 8, 2016 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. Quote Link to comment Share on other sites More sharing options...
securet Posted December 15, 2016 Author Share Posted December 15, 2016 ty, finally it works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.