{"id":231527,"date":"2024-10-10T08:09:22","date_gmt":"2024-10-10T15:09:22","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/java\/?p=231527"},"modified":"2024-10-10T08:09:22","modified_gmt":"2024-10-10T15:09:22","slug":"java-on-visual-studio-code-update-september-2024","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/java\/java-on-visual-studio-code-update-september-2024\/","title":{"rendered":"Java on Visual Studio Code Update &#8211; September 2024"},"content":{"rendered":"<p>Hi everyone, welcome to the September update for Visual Studio Code for Java! In this blog, we will cover some important Spring feature updates and Gradle enhancements, let&#8217;s get started!<\/p>\n<h3>Spring Updates<\/h3>\n<h4>Explain SpEL expressions, query statements, and AOP pointcut expressions with GitHub Copilot<\/h4>\n<p>SpEL expressions, query statements, and AOP pointcut expressions can sometimes be challenging to craft, but if you are using GitHub Copilot in your Visual Studio Code environment, the Spring Tools now show code lenses above these expressions that allow you to quickly let GitHub Copilot explain those statements for you. The corresponding prompt is crafted in a way to provide a nice summary, followed by a more detailed explanation. Here&#8217;s a demo.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/explain-with-copilot.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-231534\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/explain-with-copilot.gif\" alt=\"Explain with copilot\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<h4>Syntax highlighting and validation for CRON expressions<\/h4>\n<p>CRON expressions, when used inside the `@Scheduler` annotation, can now show up with syntax highlighting and error markers in case the syntax is not correct. Here&#8217;s a demo.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/cron.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-231533\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/cron.png\" alt=\"CRON scheduler\" width=\"668\" height=\"168\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/cron.png 668w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/cron-300x75.png 300w\" sizes=\"(max-width: 668px) 100vw, 668px\" \/><\/a><\/p>\n<h4>New inlay hints for query parameter names<\/h4>\n<p>Query parameters that use a ordinal to refer to a specific parameter of the query method now get an inlay hint, showing you the name of the resolved method parameter that the ordinal refers to.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/query-parameter-inlay-hint.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-231532\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/query-parameter-inlay-hint.gif\" alt=\"Query parameter inlay hint\" width=\"1618\" height=\"240\" \/><\/a><\/p>\n<h4>More Spring Annotations got content-assist, go to definition, and find references support<\/h4>\n<p>Working with Spring annotations in Java source code gets faster and easier with every release. The latest Spring Boot Tools add advanced features for:<\/p>\n<ul>\n<li>@ContextConfiguration (auto-completion and go to definition support for xml config files supported)<\/li>\n<li>@ConditionalOnResource (auto-completion and go to definition support for resource files supported)<\/li>\n<li>@Named (auto-completion, go to definition, find references, and bean symbols for bean names supported)<\/li>\n<li>@Inject (supported for injection points and spring file and workspace symbols supported)<\/li>\n<li>@Resource (auto-completion, go to definition, and file and workspace symbols supported)<\/li>\n<\/ul>\n<p>To use all the new features above, make sure you install the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vmware.vscode-boot-dev-pack\">Spring Boot Extension Pack<\/a>.<\/p>\n<h3>Gradle Updates<\/h3>\n<h4>Android Build Variant Support in Gradle Extension<\/h4>\n<p>Thanks to the community, the Gradle extension now has the Build Variant support for Android projects in Visual Studio Code Java. <a href=\"https:\/\/developer.android.com\/build\/build-variants\">Build variant<\/a> is a nice feature provided for Android developers to configure different kinds of applications from a single projects.\u00a0 Huge thanks to <a href=\"https:\/\/github.com\/Tanish-Ranjan\">@Tanish-Ranjan<\/a> for providing the <a href=\"https:\/\/github.com\/microsoft\/build-server-for-gradle\/pull\/194\">implementation<\/a>.<\/p>\n<h3><strong><span class=\"ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak\" dir=\"ltr\">Support hierarchical tree structure in Gradle Task Explorer<\/span><\/strong><\/h3>\n<p>We have also made some improvements visualizing project&#8217;s structure in Gradle Task Explorer. The latest release will display the project structure in a tree view in the extension.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/gradle.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-231538\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/gradle.png\" alt=\"Gradle\" width=\"514\" height=\"488\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/gradle.png 514w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/gradle-300x285.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/10\/gradle-24x24.png 24w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/a><\/p>\n<p><strong style=\"color: inherit; font-family: inherit; font-size: 1.75rem; text-align: var(--bs-body-text-align);\">Install Extension Pack for Java<\/strong><\/p>\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 September update for Visual Studio Code for Java! In this blog, we will cover some important Spring feature updates and Gradle enhancements, let&#8217;s get started! Spring Updates Explain SpEL expressions, query statements, and AOP pointcut expressions with GitHub Copilot SpEL expressions, query statements, and AOP pointcut expressions can sometimes be [&hellip;]<\/p>\n","protected":false},"author":31999,"featured_media":231540,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,22,1,15],"tags":[],"class_list":["post-231527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-desktop","category-java","category-vscode"],"acf":[],"blog_post_summary":"<p>Hi everyone, welcome to the September update for Visual Studio Code for Java! In this blog, we will cover some important Spring feature updates and Gradle enhancements, let&#8217;s get started! Spring Updates Explain SpEL expressions, query statements, and AOP pointcut expressions with GitHub Copilot SpEL expressions, query statements, and AOP pointcut expressions can sometimes be [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/231527","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=231527"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/231527\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media\/231540"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media?parent=231527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/categories?post=231527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/tags?post=231527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}