News

New Angular Extension Provides Language 'Smartness' in Visual Studio IDE

Developer feedback gathered by Microsoft led to the JavaScript/TypeScript Tools team developing a Visual Studio extension to boost programming projects based on Angular, Google's popular TypeScript-based web application framework.

"Our team went through a series of customer calls to understand their workflows and pain-points. After talking with lots of these customers, we noticed a high number of ASP.NET/ASP.NET Core users were building their front-end in Angular," said Gabrielle Crevecoeur, program manager on the JavaScript/TypeScript Tools Team, in a recent blog post.

"Unfortunately, outside of standard Visual Studio editor features (such as code completions, IntelliSense, Go to Definition and etc), there isn't much support for Angular."

That support is now boosted via the Angular Language Service for Visual Studio extension available in the VS Marketplace.

The Angular team developed the Angular Language Service that powers the new extension. Much like the multitude of language services -- following the Language Server Protocol -- that turn Visual Studio Code into such a powerful code editor by providing language-specific "smartness," Angular Language Service's functionality includes:

  • Completions lists
  • AOT Diagnostic messages
  • Quick info
  • Go to definition

"Your editor autodetects that you are opening an Angular file," the Angular site says. "It then uses the Angular Language Service to read your tsconfig.json file, find all the templates you have in your application, and then provide language services for any templates that you open."

Angular Language Service for Visual Studio
[Click on image for larger, animated GIF view.] Angular Language Service for Visual Studio in Animated Action (source: Microsoft).

Crevecoeur said the new Visual Studio tool, as of now, provides:

  • Angular code completions
  • Angular Diagnostic messages
  • Quick Info

Missing from that list is "Go to Definition," which she said will be coming soon.

In commenting on the post, one developer decried Microsoft's strategy, suggesting that it just point developers to VS Code, which already has full Angular functionality.

The VS Code Marketplace does indeed offer several Angular extensions, led by the Angular Language Service tool from the Angular team that has been installed more than 1.7 million times.

Others developers disagreed with the notion to point Angular developers to VS Code, saying the full-fledged Visual Studio IDE is better for some scenarios, with one comment reading: "For frontend only developers it's probably not a big deal. For full stacks that spend similar time in backend .NET code and frontend angular code it will be nice to work with only one IDE."

Another said: "I'm coding all parts of the app, the Angular UI, the .NET ASP mid and the SQL Server backend. And although I have Code and SSMS installed, for general day-to-day you can sit in Visual Studio and do it all. So I'm really glad that MS are making sure the premium IDE works at its fullest."

Other comments were also mixed, with one developers saying the new tool is "too green" for use now, but another saying: "Awesome! Been waiting 4 years for this."

With only 2,339 installations at the time of this writing, the jury is still way out on the tool, but has received a 4 (out of 5) rating from two developers who reviewed it.

Crevecoeur said developers can provide feedback about the new tool on GitHub.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube