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 for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube