I simply want automatically imports through intellisense in VS Code for TypeScript like C# has since a long time in Visual Studio. Using TypeScript Importer this works for my custom classes, but not for installed npm packages.
Simple example: linq is installed, I want to use Enumerable
. I dont get any intellisense, VS Code says Cannot find name Enumerable. Only after manually typing import * as Enumerable from 'linq'
it works. I also tried other addons like Auto Import or Auto Import ES6/TS none worked.
How can I make this work?
Note that package @types/linq
for typings seems not required:
npm WARN deprecated @types/[email protected]: This is a stub types definition for Linq.JS (https://linqjs.codeplex.com/). Linq.JS provides its own type definitions, so you don't need @types/linq installed!