{"id":227499,"date":"2020-06-28T17:47:38","date_gmt":"2020-06-29T00:47:38","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/java\/?p=227499"},"modified":"2020-06-28T18:40:43","modified_gmt":"2020-06-29T01:40:43","slug":"java-on-visual-studio-code-update-june-2020","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/java\/java-on-visual-studio-code-update-june-2020\/","title":{"rendered":"Java on Visual Studio Code Update \u2013 June 2020"},"content":{"rendered":"<p>Welcome back to the June update of Java on Visual Studio Code.<\/p>\n<p>We are approaching the end of the first half of 2020. In this unforgettable year, we hope you still enjoy many beautiful moments in life and, of course, enjoy the productivity VS Code brings to you. On to the update.<\/p>\n<h3>VS Code for Java soon requiring Java 11 to run<\/h3>\n<p>VS Code for Java requires the Eclipse JDT.LS server. As a result of <a href=\"https:\/\/github.com\/redhat-developer\/vscode-java\/wiki\/JDK-Requirements#jdk11.requirement\">the Eclipse Platform&#8217;s decision<\/a> to require Java 11 as the minimum requirement for its September 2020 release, that same requirement will apply to VS Code for Java. We expect the requirement will become effective as early as July 2020 for running VS Code for Java. This is a <strong>CALL FOR ACTION <\/strong>to make sure your VS Code for Java runs on Java 11 or above versions before the time comes. For more details on how to check and upgrade, please refer to <a href=\"https:\/\/code.visualstudio.com\/docs\/java\/java-tutorial#_configuring-your-development-environment-to-use-a-jdk\">Configuring your development environment to use a JDK<\/a>.<\/p>\n<p>Please note, this is <strong>NOT<\/strong> a requirement to migrate your projects to Java 11. VS Code for Java will still be possible to compile and run Java applications from Java 1.5 to 14.<\/p>\n<h3>Introducing Java pack installer for MacOS<\/h3>\n<p>There are many ways to install and set up your Java development environment on VS Code. To help you get started quickly, back to a year ago, we introduced a Java pack installer for Windows, which includes all the necessary dependencies and extensions for Java development on Visual Studio Code. Today, <a href=\"https:\/\/aka.ms\/vscode-java-installer-mac\">the installer is available on MacOS<\/a> as well. You can use the installer for a clean installation or an update to existing VS Code environment to add Java support.<\/p>\n<p>For more information on installing and setting up your Java development on VS Code, please refer to our <a href=\"https:\/\/code.visualstudio.com\/docs\/java\/java-tutorial#_setting-up-visual-studio-code-for-java-development\">Get Started<\/a> document.<\/p>\n<h3>Code completion for Lightweight Mode<\/h3>\n<p>Back to March, we introduced Syntax Mode, which allows you to read and navigate your source code right after open them, while their external dependencies are being resolved. Since that, we have received positive feedback from our developers. Today, we are sharing two news.\u00a0 Syntax mode now supports code completion. Previously, code completion is available only until projects are fully resolved. With this enhancement, code completion will be enabled in about 10 seconds after you open a fresh workspace. In addition, we are renaming Syntax Mode to Lightweight Mode. In transition, you will see both names used interchangeably.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-227506\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/06\/code-completion-for-lightweight-mode.gif\" alt=\"Image code completion for lightweight mode\" width=\"1024\" height=\"768\" \/><\/p>\n<p>For more information about Lightweight Mode (a.k.a., Syntax Model), please refer to <a href=\"https:\/\/code.visualstudio.com\/docs\/java\/java-project#_syntax-mode\">Project Management<\/a> document.<\/p>\n<h3>Other enhancements<\/h3>\n<p>In June, we released new versions of Maven for Java and Java Test Runner extensions. On Maven for Java, we improved support for PowerShell and fixed a couple of issues. On Java Test Runner, we started to support JUnit 5&#8217;s @Testable in Code Lenses. For details, please refer to <a href=\"https:\/\/marketplace.visualstudio.com\/items\/vscjava.vscode-maven\/changelog\">Maven for Java<\/a> and <a href=\"https:\/\/marketplace.visualstudio.com\/items\/vscjava.vscode-java-test\/changelog\">Java Test Runner<\/a>.<\/p>\n<h3 class=\"x-hidden-focus\">FAQ: add jar or classpath<\/h3>\n<p>We have received questions around how to add jar or classpath. Actually, VS Code provides flexibility on how, which depends on your project type. As a summary, adding jar or classpath is supported through:<\/p>\n<ul>\n<li>Maven: Supported by Maven extension<\/li>\n<li>Gradle: Need to manually update the build.gradle<\/li>\n<li>Eclipse: Manually update the .classpath file<\/li>\n<li>Source only: Update the Referenced Libraries in the dependency viewer\u2019s node<\/li>\n<\/ul>\n<p>In addition, you can always manually update the .classpath file regardless project type.<\/p>\n<h3>Try it out<\/h3>\n<p>Please don\u2019t hesitate to give it a try! Your feedback and suggestions are very important to us and will help shape our product in future.<\/p>\n<ul>\n<li>Learn more about <a href=\"https:\/\/code.visualstudio.com\/docs\/languages\/java\" target=\"_blank\" rel=\"noopener noreferrer\">Java on Visual Studio Code<\/a>.<\/li>\n<li>Explore our step by step <a href=\"https:\/\/code.visualstudio.com\/docs\/java\/java-tutorial\" target=\"_blank\" rel=\"noopener noreferrer\">Java Tutorials on Visual Studio Code<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Java on VS Code update for June introduces Java installer pack for MacOS and code completion for Lightweight Mode. This edition also reminds that soon, Java 11 or above version will be required to run your VS Code for Java. <\/p>\n","protected":false},"author":26010,"featured_media":227536,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,8,15],"tags":[248,741,742,270,12],"class_list":["post-227499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-open-source","category-vscode","tag-java","tag-java-11","tag-lightweight-mode","tag-macos","tag-visual-studio-code"],"acf":[],"blog_post_summary":"<p>Java on VS Code update for June introduces Java installer pack for MacOS and code completion for Lightweight Mode. This edition also reminds that soon, Java 11 or above version will be required to run your VS Code for Java. <\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/227499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/users\/26010"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/comments?post=227499"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/227499\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media\/227536"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media?parent=227499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/categories?post=227499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/tags?post=227499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}