Visual Studio Java Gets IntelliCode
Written by Kay Ewbank   
Thursday, 15 November 2018

Developers using Visual Studio Code to write in Java can now make use of Microsoft's AI-assisted IntelliSense extension. The extension has until now been limited to use with Python and C#.

IntelliCode goes further than the old IntelliSense feature that attempts to guess what you're typing. Machine learning is used to make the feature understand coding context based on a project's existing code. The extension shows you the recommended code completion options at the top of a list of suggestions, marked by stars. IntelliSense attempted something similar, but often came up with a wide range of suggestions, many of which were less useful, so you had to manually work through them to find the one you were looking for - or just type it for yourself.
intellicode
 

The suggestions in IntelliCode are based on an Azure machine learning model trained on over 2,000 GitHub repos. The repos ranged from machine learning frameworks, through web frameworks, to general purpose scripting. The machine learning model is complete so the VS add-on that implements it doesn't have to look anything up on GitHub or Azure. The extension isn't just about statement completion. IntelliCode suggests the most appropriate API, and offers advice on the most appropriate overload for that API given the current code context.

javaintel

Alongside the Java IntelliCode support, a number of other improvements were added to Java extensions for Visual Studio Code. The Debugger for Java now uses code lens to run Java programs more simply, and has a troubleshooting page for common errors. It also supports starting without debugging and has support for logpoints. 

Tomcat support has been updated, making it easier to work with Apache Tomcat, an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. You can now right-click on the exploded WAR folder to run it on the Tomcat Server, and also to debug it on the Tomcat Server.

Maven support has also been improved so you can quickly re-run a maven command from history, with historical commands available from the context menu. Support has also been added to trigger maven commands from the command palette.

The extension offers better support for Java 9, 10 and 11. The integration with the editor is better, and it supports more code actions, including the ability to convert a var to a type and vice versa, and to convert to a lambda expression.


intellicode

More Information

Java Extension On Microsoft MarketPlace

Related Articles

Visual Studio IntelliCode Infers C# Coding Conventions

Visual Studio Python Gets AI-Based IntelliCode

Visual Studio 2019 Will Include IntelliCode

The AI In The IDE - IntelliCode In Visual Studio

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

Banner


Learn About AWS On Coursera
16/11/2018

Coursera and Amazon Web Services (AWS) have joined forces to provide a course that introduces the core services and infrastructure of AWS. Through demonstrations participants will learn how to use and [ ... ]



Facebook Dead Will Inevitably Outnumber Live Users
11/11/2018

Facebook has had a huge impact on the lives of its users, connecting individuals to their family and friends as never before. As time passes so do people, and there will come a point when more Faceboo [ ... ]


More News

Python

 



 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 15 November 2018 )