Visual Studio Code + Java Feb 2022 updates

Published Feb 17 2022 12:58 AM 1,457 Views
Microsoft

Easily enabling unit testing in basic Java projects 

We have received a lot of feedback from students that when working on a simple Java project, they always have to manually add the testing framework JARs (such as JUnit) to the project, and our Java extensions does not offer any functionality to easily help them with this common task. To address this, we have added a new feature in our extensions so that if your project (assuming it is a basic project without build tools) does not contain any testing related libraries, you can easily add the JAR and enable unit testing in your project.


To use this feature, simply go to the “Testing” view and select “Enable Java Tests” (shown in the picture below).

LeeStott_0-1645086920351.png

 

This button will do two things for you:

  • Download the testing related JARs based on your choice (JUnit, JUnit Jupiter, TestNG)
  • Add the downloaded JAR to the libraries folder

Here is a demo of the feature:

LeeStott_4-1645087006936.gif

 

After this step is done, simply create a Java file and start writing unit tests! You can get this feature in the latest update of Extension Pack for Java.

Better support for GUI application development (JavaFX, Swing and AWT)

GUI-based Java applications are quite common in school projects. The most commonly used GUI frameworks are JavaFX, Swing and AWT. In this section, we are going to highlight some optimizations we have made to support these frameworks better.

JavaFX

We have added built-in support to create a JavaFX based project with Maven archetype in our Java extensions. To use this new feature, simply bring up the Command Palette (Ctrl+Shift+P) and run command “Java: Create Java Project“. From the drop-down list, select “JavaFX“. After selecting this item, a JavaFX project based on Maven will be created for you.

LeeStott_1-1645086920385.png


To run the JavaFX application, you can open the
 Maven view, expand hellofx > Plugins > javafx and run the Maven goal: javafx:run

run-javafx

More Visual Studio Code sample projects for JavaFX

We also realize students might be working on JavaFX projects using other build tools (Gradle) or no build tools at all, therefore we have provided complete JavaFX samples for all those different cases. Please find the latest JavaFX samples for Visual Studio Code in this sample repository.


Abstract Window Toolkit (AWT)

AWT is another framework that is popular among Java GUI application development. However, the types from the Abstract Window Toolkit (AWT) are hidden by default due to some constraints, therefore you may notice that code completion does not prompt AWT classes when you are working on an AWT application. To enable the code completion for AWT, you can open the Command Palette (Ctrl+Shift+P) and then select the command Java: Help Center. Go to the Student section and select Enable AWT Development. Please note that this action will update a setting at the workspace level, so please make sure a workspace is opened in Visual Studio Code. Here is a demo of this feature:

 

enableawt-1

 

After the setting is enabled, code completion will work on AWT applications! You can use this basic sample code to test your AWT on Visual Studio Code.

Swing

Swing application development is supported in the Extension Pack for Java by default. You can directly develop any Swing application without additional setup. To find more Swing examples, you can visit the official Oracle documentation.

Documentation for Java GUI application development on Visual Studio Code

Apart from these feature updates, we have also added a dedicated article for Java GUI application development on official Visual Studio Code documentation. We hope this article can help students and educators to easily get started on GUI development and set up the project.


New Gradle project creation workflow

In addition to unit testing and GUI applications, we are also seeing that Gradle is becoming more popular among students as well as professional developers. Therefore, we have added support for Gradle project creation in our Java project creation workflow. This feature will help you to bootstrap a simple Gradle project with just a few steps. To use this feature, simply bring up the command palette (Ctrl+Shift+P), then run the “Java: Create Java Project“, and select “Gradle” from the list. Currently this workflow supports both Groovy and Kotlin as your Domain Specific Language (DSL).

LeeStott_2-1645086920389.png

 

You can also click the “Create Java Project” button to use this feature.

LeeStott_3-1645086920394.png

 

Note that you will need to install the Gradle for Java extension to use this feature. To use all the new features mentioned above, please download the latest version of Extension Pack for Java.

 

Feedback and suggestions

There will be lots of exciting updates for Java on Visual Studio Code in 2022, and 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

  • Leave your comment on this blog post
  • Open an issue on our GitHub Issues page
  • Send an email to: vscjfeedback@microsoft.com

Resources

Here is a list of links that are helpful to learn Java on Visual Studio Code.

%3CLINGO-SUB%20id%3D%22lingo-sub-3177491%22%20slang%3D%22en-US%22%3EVisual%20Studio%20Code%20%2B%20Java%20Feb%202022%20updates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3177491%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3E%3CSTRONG%3EEasily%20enabling%20unit%20testing%20in%20basic%20Java%20projects%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWe%20have%20received%20a%20lot%20of%20feedback%20from%20students%20that%20when%20working%20on%20a%20simple%20Java%20project%2C%20they%20always%20have%20to%20manually%20add%20the%20testing%20framework%20JARs%20(such%20as%20JUnit)%20to%20the%20project%2C%20and%20our%20Java%20extensions%20does%20not%20offer%20any%20functionality%20to%20easily%20help%20them%20with%20this%20common%20task.%20To%20address%20this%2C%20we%20have%20added%20a%20new%20feature%20in%20our%20extensions%20so%20that%20if%20your%20project%3CSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(assuming%20it%20is%20a%20basic%20project%20without%20build%20tools)%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edoes%20not%20contain%20any%20testing%20related%20libraries%2C%20you%20can%20easily%20add%20the%20JAR%20and%20enable%20unit%20testing%20in%20your%20project.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3ETo%20use%20this%20feature%2C%20simply%20go%20to%20the%20%E2%80%9C%3CSTRONG%3ETesting%3C%2FSTRONG%3E%E2%80%9D%20view%20and%20select%20%E2%80%9C%3CSTRONG%3EEnable%20Java%20Tests%3C%2FSTRONG%3E%E2%80%9D%20(shown%20in%20the%20picture%20below).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_0-1645086920351.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348973iC3515C3F95DF184A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_0-1645086920351.png%22%20alt%3D%22LeeStott_0-1645086920351.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20button%20will%20do%20two%20things%20for%20you%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDownload%20the%20testing%20related%20JARs%20based%20on%20your%20choice%20(JUnit%2C%20JUnit%20Jupiter%2C%20TestNG)%3C%2FLI%3E%0A%3CLI%3EAdd%20the%20downloaded%20JAR%20to%20the%20libraries%20folder%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22%22%3EHere%20is%20a%20demo%20of%20the%20feature%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_4-1645087006936.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348978i43B882B869BE038A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22LeeStott_4-1645087006936.gif%22%20alt%3D%22LeeStott_4-1645087006936.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20this%20step%20is%20done%2C%20simply%20create%20a%20Java%20file%20and%20start%20writing%20unit%20tests!%20You%20can%20get%20this%20feature%20in%20the%20latest%20update%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dvscjava.vscode-java-pack%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EExtension%20Pack%20for%20Java%3C%2FA%3E.%3C%2FP%3E%0A%3CH3%20id%3D%22better-support-for-gui-application-development-javafx-swing-and-awt%22%20id%3D%22toc-hId--1431733073%22%20id%3D%22toc-hId--1431732202%22%3E%3CSPAN%3E%3CSTRONG%3EBetter%20support%20for%20GUI%20application%20development%20(JavaFX%2C%20Swing%20and%20AWT)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CI%20class%3D%22fabric-icon%20fabric-icon--Link%22%20aria-hidden%3D%22true%22%3E%3C%2FI%3E%3C%2FH3%3E%0A%3CP%3EGUI-based%20Java%20applications%20are%20quite%20common%20in%20school%20projects.%20The%20most%20commonly%20used%20GUI%20frameworks%20are%20JavaFX%2C%20Swing%20and%20AWT.%20In%20this%20section%2C%20we%20are%20going%20to%20highlight%20some%20optimizations%20we%20have%20made%20to%20support%20these%20frameworks%20better.%3C%2FP%3E%0A%3CH4%20id%3D%22javafx%22%20id%3D%22toc-hId--741171599%22%20id%3D%22toc-hId--741170728%22%3E%3CSPAN%3E%3CSTRONG%3EJavaFX%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CI%20class%3D%22fabric-icon%20fabric-icon--Link%22%20aria-hidden%3D%22true%22%3E%3C%2FI%3E%3C%2FH4%3E%0A%3CP%3EWe%20have%20added%20built-in%20support%20to%20create%20a%20JavaFX%20based%20project%20with%20Maven%20archetype%20in%20our%20Java%20extensions.%20To%20use%20this%20new%20feature%2C%20simply%20bring%20up%20the%20Command%20Palette%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E(Ctrl%2BShift%2BP)%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3Eand%20run%20command%20%E2%80%9C%3CSTRONG%3EJava%3A%20Create%20Java%20Project%3C%2FSTRONG%3E%E2%80%9C.%20From%20the%20drop-down%20list%2C%20select%20%E2%80%9C%3CSTRONG%3EJavaFX%3C%2FSTRONG%3E%E2%80%9C.%20After%20selecting%20this%20item%2C%20a%20JavaFX%20project%20based%20on%20Maven%20will%20be%20created%20for%20you.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_1-1645086920385.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348975i1C8EB3CB53F81109%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_1-1645086920385.png%22%20alt%3D%22LeeStott_1-1645086920385.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%3CBR%20%2F%3ETo%20run%20the%20JavaFX%20application%2C%20you%20can%20open%20the%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EMaven%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eview%2C%20expand%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%20class%3D%22%20prettyprinted%22%3E%3CSPAN%20class%3D%22pln%22%3Ehellofx%3C%2FSPAN%3E%3C%2FCODE%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%26gt%3B%26nbsp%3B%3C%2FSPAN%3E%3CCODE%20class%3D%22%20prettyprinted%22%3E%3CSPAN%20class%3D%22typ%22%3EPlugins%3C%2FSPAN%3E%3C%2FCODE%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%26gt%3B%26nbsp%3B%3C%2FSPAN%3E%3CCODE%20class%3D%22%20prettyprinted%22%3E%3CSPAN%20class%3D%22pln%22%3Ejavafx%3C%2FSPAN%3E%3C%2FCODE%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3Band%20run%20the%20Maven%20goal%3A%26nbsp%3B%3C%2FSPAN%3E%3CCODE%20class%3D%22%20prettyprinted%22%3E%3CSPAN%20class%3D%22pln%22%3Ejavafx%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3Erun%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FP%3E%0A%3CDIV%20class%3D%22gifffer-play-button%22%3E%0A%3CP%20class%3D%22%22%3E%3CCODE%20class%3D%22%20prettyprinted%22%3E%3C%2FCODE%3E%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22run-javafx%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349010iA6674E0E9016B5B7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22run-javafx%22%20alt%3D%22run-javafx%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CP%20class%3D%22%22%3E%3CCODE%20class%3D%22%20prettyprinted%22%3E%3C%2FCODE%3E%3C%2FP%3E%3CSTRONG%20class%3D%22%22%20style%3D%22font-family%3A%20inherit%3B%20color%3A%20inherit%3B%20font-size%3A%2018px%3B%22%3EMore%20Visual%20Studio%20Code%20sample%20projects%20for%20JavaFX%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CP%3EWe%20also%20realize%20students%20might%20be%20working%20on%20JavaFX%20projects%20using%20other%20build%20tools%20(%3CSTRONG%3EGradle%3C%2FSTRONG%3E)%20or%20no%20build%20tools%20at%20all%2C%20therefore%20we%20have%20provided%20complete%20JavaFX%20samples%20for%20all%20those%20different%20cases.%20Please%20find%20the%20latest%20JavaFX%20samples%20for%20Visual%20Studio%20Code%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fopenjfx%2Fsamples%2Ftree%2Fmaster%2FIDE%2FVSCode%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ein%20this%20sample%20repository%3C%2FA%3E.%3C%2FP%3E%0A%3CH4%20id%3D%22abstract-window-toolkit-awt%22%20id%3D%22toc-hId-1746341234%22%20id%3D%22toc-hId-1746342105%22%3E%3CSPAN%3E%3CSTRONG%3E%3CBR%20%2F%3EAbstract%20Window%20Toolkit%20(AWT)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CI%20class%3D%22fabric-icon%20fabric-icon--Link%22%20aria-hidden%3D%22true%22%3E%3C%2FI%3E%3C%2FH4%3E%0A%3CP%3EAWT%20is%20another%20framework%20that%20is%20popular%20among%20Java%20GUI%20application%20development.%20However%2C%20the%20types%20from%20the%20Abstract%20Window%20Toolkit%20(AWT)%20are%20hidden%20by%20default%20due%20to%20some%20constraints%2C%20therefore%20you%20may%20notice%20that%20code%20completion%20does%20not%20prompt%20AWT%20classes%20when%20you%20are%20working%20on%20an%20AWT%20application.%20To%20enable%20the%20code%20completion%20for%20AWT%2C%20you%20can%20open%20the%20Command%20Palette%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E(%3CSPAN%20class%3D%22dynamic-keybinding%20keybinding%20win%22%20title%3D%22macOS%3A%20%E2%87%A7%E2%8C%98P%2C%20Linux%3A%20Ctrl%2BShift%2BP%22%20data-commandid%3D%22workbench.action.showCommands%22%20data-osx%3D%22%E2%87%A7%E2%8C%98P%22%20data-win%3D%22Ctrl%2BShift%2BP%22%20data-linux%3D%22Ctrl%2BShift%2BP%22%3ECtrl%2BShift%2BP%3C%2FSPAN%3E)%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20then%20select%20the%20command%26nbsp%3B%3CSTRONG%3EJava%3A%20Help%20Center%3C%2FSTRONG%3E.%20Go%20to%20the%26nbsp%3B%3CSTRONG%3EStudent%3C%2FSTRONG%3E%26nbsp%3Bsection%20and%20select%26nbsp%3B%3CSTRONG%3EEnable%20AWT%20Development%3C%2FSTRONG%3E.%20Please%20note%20that%20this%20action%20will%20update%20a%20setting%20at%20the%20workspace%20level%2C%20so%20please%20make%20sure%20a%20workspace%20is%20opened%20in%20Visual%20Studio%20Code.%20Here%20is%20a%20demo%20of%20this%20feature%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22enableawt-1%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349009iA6C3A3712B4D9E9E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22enableawt-1%22%20alt%3D%22enableawt-1%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20the%20setting%20is%20enabled%2C%20code%20completion%20will%20work%20on%20AWT%20applications!%20You%20can%20use%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Fjava%2Fjava-gui%23_develop-awt-applications%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20basic%20sample%20code%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20test%20your%20AWT%20on%20Visual%20Studio%20Code.%3C%2FP%3E%0A%3CH4%20id%3D%22swing%22%20id%3D%22toc-hId--61113229%22%20id%3D%22toc-hId--61112358%22%3E%3CSPAN%3E%3CSTRONG%3ESwing%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CI%20class%3D%22fabric-icon%20fabric-icon--Link%22%20aria-hidden%3D%22true%22%3E%3C%2FI%3E%3C%2FH4%3E%0A%3CP%3ESwing%20application%20development%20is%20supported%20in%20the%20Extension%20Pack%20for%20Java%20by%20default.%20You%20can%20directly%20develop%20any%20Swing%20application%20without%20additional%20setup.%20To%20find%20more%20Swing%20examples%2C%20you%20can%20visit%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.oracle.com%2Fjavase%2Ftutorial%2Fuiswing%2Fexamples%2Fcomponents%2Findex.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eofficial%20Oracle%20documentation%3C%2FA%3E.%3C%2FP%3E%0A%3CH4%20id%3D%22documentation-for-java-gui-application-development-on-visual-studio-code%22%20id%3D%22toc-hId--1868567692%22%20id%3D%22toc-hId--1868566821%22%3E%3CSPAN%3E%3CSTRONG%3EDocumentation%20for%20Java%20GUI%20application%20development%20on%20Visual%20Studio%20Code%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CI%20class%3D%22fabric-icon%20fabric-icon--Link%22%20aria-hidden%3D%22true%22%3E%3C%2FI%3E%3C%2FH4%3E%0A%3CP%3EApart%20from%20these%20feature%20updates%2C%20we%20have%20also%20added%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Fjava%2Fjava-gui%23_develop-awt-applications%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ea%20dedicated%20article%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20Java%20GUI%20application%20development%20on%20official%20Visual%20Studio%20Code%20documentation.%20We%20hope%20this%20article%20can%20help%20students%20and%20educators%20to%20easily%20get%20started%20on%20GUI%20development%20and%20set%20up%20the%20project.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22x-hidden-focus%22%3E%3CBR%20%2F%3ENew%20Gradle%20project%20creation%20workflow%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20addition%20to%20unit%20testing%20and%20GUI%20applications%2C%20we%20are%20also%20seeing%20that%20Gradle%20is%20becoming%20more%20popular%20among%20students%20as%20well%20as%20professional%20developers.%20Therefore%2C%20we%20have%20added%20support%20for%20Gradle%20project%20creation%20in%20our%20Java%20project%20creation%20workflow.%20This%20feature%20will%20help%20you%20to%20bootstrap%20a%20simple%20Gradle%20project%20with%20just%20a%20few%20steps.%20To%20use%20this%20feature%2C%20simply%20bring%20up%20the%20command%20palette%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E(%3CSPAN%20class%3D%22dynamic-keybinding%20keybinding%20win%22%20title%3D%22macOS%3A%20%E2%87%A7%E2%8C%98P%2C%20Linux%3A%20Ctrl%2BShift%2BP%22%20data-commandid%3D%22workbench.action.showCommands%22%20data-osx%3D%22%E2%87%A7%E2%8C%98P%22%20data-win%3D%22Ctrl%2BShift%2BP%22%20data-linux%3D%22Ctrl%2BShift%2BP%22%3ECtrl%2BShift%2BP%3C%2FSPAN%3E)%3C%2FSTRONG%3E%2C%20then%20run%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%E2%80%9CJava%3A%20Create%20Java%20Project%3C%2FSTRONG%3E%E2%80%9C%2C%20and%20select%20%E2%80%9C%3CSTRONG%3EGradle%3C%2FSTRONG%3E%E2%80%9D%20from%20the%20list.%20Currently%20this%20workflow%20supports%20both%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EGroovy%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EKotlin%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eas%20your%20Domain%20Specific%20Language%20(%3CSTRONG%3EDSL%3C%2FSTRONG%3E).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_2-1645086920389.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348974i7E6698B07C4030AF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_2-1645086920389.png%22%20alt%3D%22LeeStott_2-1645086920389.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20click%20the%20%E2%80%9CCreate%20Java%20Project%E2%80%9D%20button%20to%20use%20this%20feature.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_3-1645086920394.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348976iB335EFE4540800E8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_3-1645086920394.png%22%20alt%3D%22LeeStott_3-1645086920394.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%20that%20you%20will%20need%20to%20install%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dvscjava.vscode-gradle%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGradle%20for%20Java%20extension%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20use%20this%20feature.%20To%20use%20all%20the%20new%20features%20mentioned%20above%2C%20please%20download%20the%20latest%20version%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dvscjava.vscode-java-pack%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EExtension%20Pack%20for%20Java.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22x-hidden-focus%22%3EFeedback%20and%20suggestions%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThere%20will%20be%20lots%20of%20exciting%20updates%20for%20Java%20on%20Visual%20Studio%20Code%20in%202022%2C%20and%20as%20always%2C%20your%20feedback%20and%20suggestions%20are%20very%20important%20to%20us%20and%20will%20help%20shape%20our%20product%20in%20future.%20There%20are%20several%20ways%20to%20give%20us%20feedback%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELeave%20your%20comment%20on%20this%20blog%20post%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-java-pack%2Fissues%2Fnew%2Fchoose%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EOpen%20an%20issue%3C%2FA%3E%26nbsp%3Bon%20our%20GitHub%20Issues%20page%3C%2FLI%3E%0A%3CLI%3ESend%20an%20email%20to%3A%20vscjfeedback%40microsoft.com%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22try-it-out%22%20class%3D%22x-hidden-focus%22%20id%3D%22toc-hId--1879070796%22%20id%3D%22toc-hId--1879069925%22%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22x-hidden-focus%22%3EResources%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CI%20class%3D%22fabric-icon%20fabric-icon--Link%22%20aria-hidden%3D%22true%22%3E%3C%2FI%3E%3C%2FH3%3E%0A%3CP%3EHere%20is%20a%20list%20of%20links%20that%20are%20helpful%20to%20learn%20Java%20on%20Visual%20Studio%20Code.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20class%3D%22x-hidden-focus%22%3ELearn%20more%20about%26nbsp%3B%3CA%20class%3D%22x-hidden-focus%22%20href%3D%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Flanguages%2Fjava%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EJava%20on%20Visual%20Studio%20Code%3C%2FA%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3177491%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22x-hidden-focus%22%3EWelcome%20to%20the%20February%20update%20of%20Visual%20Studio%20Code%20Java.%20In%20order%20to%20provide%20student%20and%20educators%20a%20better%20experience%20using%20Java%20on%20Visual%20Studio%20Code%20this%20semester%2C%20we%20have%20been%20making%20a%20series%20of%20improvements%20regarding%20unit%20testing%2C%20GUI%20application%20development%20and%20Gradle%20project%20creation.%20Let%20us%20take%20a%20look%20at%20these%20new%20features!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3177491%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Efaculty%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EJava%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStudents%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVisual%20Studio%20Code%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVSCode%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Feb 17 2022 12:57 AM
Updated by: