
For example, a List will result in a suggestion for new ArrayList. With these new improvements, the code completion will be more aware of the type that user is creating and suggests the most relevant type for the constructors. Regarding the code completion, one of the top issues is that when writing a constructor in VS Code, developers expect that the suggestion should be directly related to the type that is defined (for example, List list = … should prompt a List type auto-suggestion for “…” part), however, this is often not the case in the current implementation.ĭuring the last few iterations, we have investigated this issue and made changes to improve this experience. Public static void main(String args) Ī quick demo to showcase these new shortcutsĬode completion optimization for constructors ( new keyword) Here is a list of the shortcuts we support Code template Therefore, we have added these shortcuts for common code snippets in our extensions.

However, we heard from a lot of users that they are used to shortcuts from other IDEs such as IntelliJ IDEA and would like to see shortcuts from these IDEs supported in Visual Studio Code as well. For example, the shortcut for () is sysout. Let’s get right into it! More shortcuts to generate code snippetsīecause our language support for Java is provided via Eclipse ™ JDT Language Server, the shortcuts to generate certain code snippets (such as ) are mostly based on Eclipse convention.

This time we are going to bring you some recent update regarding our code completion optimization, Maven improvements and pre-release version of our Java extensions.

Hi everyone, welcome to the March update of Visual Studio Code Java.
