{"id":227756,"date":"2020-11-16T02:36:05","date_gmt":"2020-11-16T10:36:05","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/java\/?p=227756"},"modified":"2020-11-17T20:12:44","modified_gmt":"2020-11-18T04:12:44","slug":"java-on-visual-studio-code-update-october-2020","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/java\/java-on-visual-studio-code-update-october-2020\/","title":{"rendered":"Java on Visual Studio Code Update \u2013 October 2020"},"content":{"rendered":"<p>Welcome to the update of Java on Visual Studio Code for October. In this update, we will introduce some \u2018small\u2019 new things that you would love. VS Code is not only about features, UIs and extensions, and it\u2019s also about communities and users. We appreciate all feedback, ideas and criticisms you have been provided to us. Some of the features we are going to introduce are directly inspired by you. Let\u2019s start.<\/p>\n<h3>Debugging<\/h3>\n<h4>Stacktrace hyperlink to source<\/h4>\n<p>Now, you can directly navigate from stacktrace to source code by clicking source hyperlink in terminal window.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/terminal_stacktrace.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-227757\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/terminal_stacktrace.gif\" alt=\"Image terminal stacktrace\" width=\"2048\" height=\"1536\" \/><\/a><\/p>\n<h4>Specifying VM arguments<\/h4>\n<p>We introduced a setting, <strong>java.debug.settings.vmArgs<\/strong>, for specifying default VM arguments. The setting will be applied to all run or debug sessions under a user or a workspace per applied scope. You can find the setting by clicking <strong>Files<\/strong>-&gt;<strong>Preferences<\/strong>-&gt;<strong>Settings<\/strong>\u00a0menu and then search for \u201c<strong>java.debug.settings.vmArgs<\/strong>\u201d on settings view.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/vmArgs.png\"><img decoding=\"async\" class=\"alignnone wp-image-227761 size-full\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/vmArgs.png\" alt=\"Image vmArgs\" width=\"3000\" height=\"1920\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/vmArgs.png 3000w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/vmArgs-300x192.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/vmArgs-1024x655.png 1024w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/vmArgs-768x492.png 768w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/vmArgs-1536x983.png 1536w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/vmArgs-2048x1311.png 2048w\" sizes=\"(max-width: 3000px) 100vw, 3000px\" \/><\/a><\/p>\n<h4>Run and debug from project view<\/h4>\n<p>Now, you can run or debug your application directly from the context menu of project view by right clicking on the name of your project.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/run-debug-from-project-view.png\"><img decoding=\"async\" class=\"alignnone wp-image-227763 size-full\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/run-debug-from-project-view.png\" alt=\"Image run debug from project view\" width=\"2995\" height=\"1921\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/run-debug-from-project-view.png 2995w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/run-debug-from-project-view-300x192.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/run-debug-from-project-view-1024x657.png 1024w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/run-debug-from-project-view-768x493.png 768w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/run-debug-from-project-view-1536x985.png 1536w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/run-debug-from-project-view-2048x1314.png 2048w\" sizes=\"(max-width: 2995px) 100vw, 2995px\" \/><\/a><\/p>\n<h3>Project management<\/h3>\n<h4>Exporting JAR to a user-specified folder<\/h4>\n<p>We introduced a new setting, <strong>java.project.exportJar.targetPath<\/strong>, for specifying whether exporting JAR to a default folder or a user-specified folder. When setting value to \u201caskUser\u201d, user can specify target folder during exporting. You can find the setting by clicking <strong>Files<\/strong>-&gt;<strong>Preferences<\/strong>-&gt;<strong>Settings<\/strong>\u00a0menu and then search for \u201c<strong>java.project.exportJar.targetPath<\/strong>\u201d on settings view.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/exportJar.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-227764\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/exportJar.gif\" alt=\"Image exportJar\" width=\"2030\" height=\"1526\" \/><\/a><\/p>\n<h4>Navigating to project view from file explore and editor view<\/h4>\n<p>Back to July, we introduced Java project view, which allows you to access all project management related functions. The view is named \u201c<strong>JAVA PROJECTS<\/strong>\u201d on your side bar. To make the view more accessible, today we added two new entry points: the context menu of Java source file, pom.xml or build.gradle in file explore and editor tab. You can find \u201c<strong>Reveal in Java Projects<\/strong>\u201d command from the context menu and navigate to Java project view from there.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/reveal-in-java-projects.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-227767\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/reveal-in-java-projects.gif\" alt=\"Image reveal in java projects\" width=\"1450\" height=\"1120\" \/><\/a><\/p>\n<h4>New Class, New Package and Delete from project view<\/h4>\n<p>Now, you can do <strong>New Class<\/strong>, <strong>New Package<\/strong> and <strong>Delete<\/strong> directly from project view\u2019s context menu.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/new-and-delete.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-227768\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/new-and-delete.png\" alt=\"Image new and delete\" width=\"3000\" height=\"1920\" srcset=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/new-and-delete.png 3000w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/new-and-delete-300x192.png 300w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/new-and-delete-1024x655.png 1024w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/new-and-delete-768x492.png 768w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/new-and-delete-1536x983.png 1536w, https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2020\/11\/new-and-delete-2048x1311.png 2048w\" sizes=\"(max-width: 3000px) 100vw, 3000px\" \/><\/a><\/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>In this update, we will introduce some \u2018small\u2019 new things on debugging and project management that you would love. Some of these are directly inspired by you.<\/p>\n","protected":false},"author":26010,"featured_media":227782,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,8,15],"tags":[25,248,749,12],"class_list":["post-227756","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-open-source","category-vscode","tag-debugging","tag-java","tag-project-management","tag-visual-studio-code"],"acf":[],"blog_post_summary":"<p>In this update, we will introduce some \u2018small\u2019 new things on debugging and project management that you would love. Some of these are directly inspired by you.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/227756","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=227756"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/227756\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media\/227782"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media?parent=227756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/categories?post=227756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/tags?post=227756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}