{"id":230658,"date":"2024-03-04T22:54:52","date_gmt":"2024-03-05T06:54:52","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/java\/?p=230658"},"modified":"2024-03-04T22:54:52","modified_gmt":"2024-03-05T06:54:52","slug":"java-on-visual-studio-code-update-february-2024","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/java\/java-on-visual-studio-code-update-february-2024\/","title":{"rendered":"Java on Visual Studio Code Update &#8211; February 2024"},"content":{"rendered":"<p>Hi everyone, welcome to the February update for Visual Studio Code for Java! In this blog we are going to share improvements for the project management experience as well as Maven multi-module support, so let&#8217;s get started!<\/p>\n<h3><strong>More Convenient Ways to Create New Java Projects<\/strong><\/h3>\n<p>We have often heard from developers that they need more convenient options to create Java projects and classes. In the latest release, we have added two more new points to create new Java projects. This includes <strong>File Menu<\/strong> and <strong>File Explorer<\/strong>. Now users can directly can go to the File Menu, click &#8220;New File&#8221;, and find &#8220;New Java Project&#8221; as an option. Here&#8217;s a demo.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/newproject.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-230766\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/newproject.gif\" alt=\"New Java Project\" width=\"1810\" height=\"1080\" \/><\/a><\/p>\n<p>The other option is to directly right click on a folder inside the File Explorer inside Visual Studio Code, and there will also be a &#8220;New Java Project&#8221;. Here&#8217;s a demo.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/fileexplorer.gif\"><img decoding=\"async\" class=\"size-full wp-image-230765\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/fileexplorer.gif\" alt=\"File Explorer Java New Project\" width=\"1810\" height=\"1080\" \/><\/a><\/p>\n<p>You can also see New Java File from this option and directly create relevant Java files, here&#8217;s the screenshot.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/javafilelist.png\"><img decoding=\"async\" class=\"size-full wp-image-230763\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/javafilelist.png\" alt=\"Image javafilelist\" width=\"1511\" height=\"848\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/javafilelist.png 1511w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/javafilelist-300x168.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/javafilelist-1024x575.png 1024w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/javafilelist-768x431.png 768w\" sizes=\"(max-width: 1511px) 100vw, 1511px\" \/><\/a><\/p>\n<h3><strong>Creating a New Maven Module<\/strong><\/h3>\n<p>Many users have reported that when creating a Maven sub-module in Visual Studio Code, they will have to manually modify the POM configuration and reload the workspace, which is very time-consuming, especially for projects with a lot of modules. In our latest version, we have added the support of creating a new Maven module directly to an existing multi-module project.<\/p>\n<p>Developer just needs to right click and bring up the File context menu in the File Explorer, find Maven and click on &#8220;<strong>New Maven Module<\/strong>&#8220;. The instructions then will provide simplified steps to add a module to the existing project. After the steps are finished, the newly created module will be automatically imported as a Java project. Here&#8217;s a demo.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/newmavenmodule.gif\"><img decoding=\"async\" class=\"size-full wp-image-230768\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/03\/newmavenmodule.gif\" alt=\"Create New Maven Module\" width=\"2136\" height=\"1516\" \/><\/a><\/p>\n<p dir=\"auto\">The difference between &#8220;New Project&#8230;&#8221; and &#8220;New Module&#8230;&#8221; is:<\/p>\n<ul dir=\"auto\">\n<li>&#8220;New Project&#8230;&#8221; command is a general command to use maven archetype to create a Maven project in any location, either inside or outside your current workspace.<\/li>\n<li>The \u201cNew Module\u2026\u201d command is a convenient way to create a new module within your current workspace. It prompts you to select the parent POM and automatically adds the new module to it.<\/li>\n<\/ul>\n<p>We hope this new feature will greatly increase the efficiency for developers who work with multi-module Maven projects.<\/p>\n<h3><strong>Install Extension Pack for Java<\/strong><\/h3>\n<p>To use all features mentioned above, please download and install <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-pack\">Extension Pack for Java<\/a> on Visual Studio Code.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/09\/javapack.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-229421\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/09\/javapack.png\" alt=\"Extension pack for Java\" width=\"1215\" height=\"238\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/09\/javapack.png 1215w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/09\/javapack-300x59.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/09\/javapack-1024x201.png 1024w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/09\/javapack-768x150.png 768w\" sizes=\"(max-width: 1215px) 100vw, 1215px\" \/><\/a><\/p>\n<p>If you are a Spring developer working on a Spring Boot application, you can also download the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=Pivotal.vscode-boot-dev-pack\">Spring Boot Extension Pack<\/a> for specialized Spring experience.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/10\/spring.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-229533\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/10\/spring.png\" alt=\"Spring boot extension pack\" width=\"1221\" height=\"224\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/10\/spring.png 1221w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/10\/spring-300x55.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/10\/spring-1024x188.png 1024w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2022\/10\/spring-768x141.png 768w\" sizes=\"(max-width: 1221px) 100vw, 1221px\" \/><\/a><\/p>\n<h3><span style=\"font-size: 18pt;\"><strong><span class=\"x-hidden-focus\">Feedback and suggestions<\/span><\/strong><\/span><\/h3>\n<p>As always, your feedback and suggestions are very important to us and will help shape our product in future. There are several ways to give us feedback<\/p>\n<ul>\n<li>Leave your comment on this blog post<\/li>\n<li><a href=\"https:\/\/github.com\/microsoft\/vscode-java-pack\/issues\/new\/choose\" target=\"_blank\" rel=\"noopener\">Open an issue<\/a>\u00a0on our GitHub Issues page<\/li>\n<li>Send an email to: vscjfeedback@microsoft.com<\/li>\n<\/ul>\n<h3 id=\"try-it-out\" class=\"x-hidden-focus\"><span style=\"font-size: 18pt;\"><strong><span class=\"x-hidden-focus\">Resources<\/span><\/strong><\/span><\/h3>\n<p>Here is a list of links that are helpful to learn Java on Visual Studio Code.<\/p>\n<ul>\n<li class=\"x-hidden-focus\">Learn more about\u00a0<a class=\"x-hidden-focus\" href=\"https:\/\/code.visualstudio.com\/docs\/languages\/java\" target=\"_blank\" rel=\"noopener noreferrer\">Java on Visual Studio Code<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hi everyone, welcome to the February update for Visual Studio Code for Java! In this blog we are going to share improvements for the project management experience as well as Maven multi-module support, so let&#8217;s get started! More Convenient Ways to Create New Java Projects We have often heard from developers that they need more [&hellip;]<\/p>\n","protected":false},"author":31999,"featured_media":230774,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,22,1,8,15],"tags":[],"class_list":["post-230658","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-desktop","category-java","category-open-source","category-vscode"],"acf":[],"blog_post_summary":"<p>Hi everyone, welcome to the February update for Visual Studio Code for Java! In this blog we are going to share improvements for the project management experience as well as Maven multi-module support, so let&#8217;s get started! More Convenient Ways to Create New Java Projects We have often heard from developers that they need more [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/230658","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\/31999"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/comments?post=230658"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/230658\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media\/230774"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media?parent=230658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/categories?post=230658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/tags?post=230658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}