2.7 KiB
JavaScript and TypeScript in Visual Studio 2019
Overview
Visual Studio 2019 provides rich support for JavaScript development, both via JavaScript directly, and via the TypeScript programming language, which was developed to provide a more productive and enjoyable JavaScript development experience - especially when developing projects at scale. You can write JavaScript or TypeScript code in Visual Studio for many application types and services.
JavaScript Language Service
The JavaScript experience in Visual Studio 2019 is powered by the same engine that provides TypeScript support. This gives you better feature support, richness, and integration immediately out-of-the-box.
The option to restore to the legacy JavaScript language service is no longer available. Users will now have the new JavaScript language service out-of-the-box. The new language service is solely based on the TypeScript language service, which is powered by static analysis. This enables us to provide you with better tooling, so your JavaScript code can benefit from richer IntelliSense based on type definitions. The new service is lightweight and consumes less memory than the legacy service, providing you with better performance as your code scales. We have also improved performance of the language service to handle larger projects.
TypeScript support
Visual Studio 2019 provides several options for integrating TypeScript compilation into your project:
- The TypeScript NuGet package. When the NuGet package for TypeScript 3.2 or higher is installed into your project, the corresponding version of the TypeScript language service will be loaded in the editor.
- The TypeScript SDK, available by default in the Visual Studio installer, as well as as a standalone download from the VS Marketplace.
- The TypeScript npm package. When the NuGet package for TypeScript 2.1 or higher is installed into your project, the corresponding version of the TypeScript language service will be loaded in the editor.
For projects developed in Visual Studio 2019, we encourage you to use the TypeScript NuGet and npm packages for greater portability across different platforms and environments.
Projects
UWP JavaScript apps are no longer supported in Visual Studio 2019. You cannot create or open JavaScript UWP projects (files with extension .jsproj). You can learn more via our documentation on creating Progressive Web Apps (PWAs) that run well on Windows.