What Visual Studio Code
can do for Java
Development
Ed Burns
@edburns
Way more than I can
show in 15 minutes.
So I will go slow and not rush.
Ed Burns
@edburns
© Microsoft Corporation
• Why VS Code?
• How to get started?
• Simple Java Authoring
• More Complex Java Authoring
• Summary and key takeaways
My Plan for Your Time Investment
© Microsoft Corporation
© Microsoft Corporation
1. On a Mac? Just install it from https://code.visualstudio.com/
2. On a PC?
A. Java for Windows? Just install it.
B. Coming from Mac?
a. Install WSL 2 https://docs.microsoft.com/en-us/windows/wsl/wsl2-install
b. Install a GNU/Linux distribution from the Microsoft Store
c. Install VS Code on the Windows side
d. Install Remote Development Extension Pack https://code.visualstudio.com/docs/remote/wsl
3. Install the Java Extension Pack https://code.visualstudio.com/docs/java/java-tutorial
How to Get Started?
RecommendedWorkflowfor JavaDevelopers
Simple Java Authoring
 Learning how to learn VS Code
 What about “projects”?
 Runner and Debugger
© Microsoft Corporation
• Help is actually helpful
• Optimized for keyboard only lovers (but not quite Emacs)
• Help -> Welcome
• Learn
• Find and run all commands
• Interface overview
• Works with extensions
• Gitter chat room from Extension page for “Language Support for Java
by RedHat”
Learning How to Learn VS Code
VS Codeis a Front Endto EverythingCool Happeningin Azure
© Microsoft Corporation
• Wait, what about “projects”?
• NetBeans: pom.xml is the project, or .nbproject
• IntelliJ/Eclipse: Project with imported pom.xml
• VS Code
• Folder
• Workspace
Let’s get a little into Java
ExtremelySimpleProject
© Microsoft Corporation
• Start From Maven Archetype
• Ctrl+Shift+P Java: Overview
• Start
• Create a Maven Project
• Have access to the entire maven archetype catalog: maven-archetype-quickstart
• Breadcrumb navigation
• Outline
• File Browser
• Run Project
• Debug Project
Let’s get a little into Java
ExtremelySimpleProject
© Microsoft Corporation
• Get on the Update Train
• Xiaokai He’s blog posts
• https://devblogs.microsoft.com/java/java-on-visual-studio-code-update-january-2020/
Peek call hierarchy
Data breakpoints
• https://devblogs.microsoft.com/java/java-on-visual-studio-code-november-update/
Better symbol details
• https://devblogs.microsoft.com/java/java-on-visual-studio-code-october-update/
Inline refactoring
Let’s get a little into Java
ExtremelySimpleProject
© Microsoft Corporation
• Spring Petclinic
• Dependency viewer
• Ctrl T: Go go symbol: PetClinicApplication
A little more advanced
© Microsoft Corporation
• VS Code is worth mastering
• Not trying to be IntelliJ
• But it probably does everything you need for Java
• And it fits today’s reality that developers need to
switch languages constantly
• https://code.visualstudio.com/
Summary and Key Takeaways
Thank You
© Copyright Microsoft Corporation. All rights reserved.

What Visual Studio Code can do for Java Development

  • 1.
    What Visual StudioCode can do for Java Development Ed Burns @edburns
  • 2.
    Way more thanI can show in 15 minutes. So I will go slow and not rush. Ed Burns @edburns
  • 3.
    © Microsoft Corporation •Why VS Code? • How to get started? • Simple Java Authoring • More Complex Java Authoring • Summary and key takeaways My Plan for Your Time Investment
  • 4.
  • 5.
    © Microsoft Corporation 1.On a Mac? Just install it from https://code.visualstudio.com/ 2. On a PC? A. Java for Windows? Just install it. B. Coming from Mac? a. Install WSL 2 https://docs.microsoft.com/en-us/windows/wsl/wsl2-install b. Install a GNU/Linux distribution from the Microsoft Store c. Install VS Code on the Windows side d. Install Remote Development Extension Pack https://code.visualstudio.com/docs/remote/wsl 3. Install the Java Extension Pack https://code.visualstudio.com/docs/java/java-tutorial How to Get Started? RecommendedWorkflowfor JavaDevelopers
  • 6.
    Simple Java Authoring Learning how to learn VS Code  What about “projects”?  Runner and Debugger
  • 7.
    © Microsoft Corporation •Help is actually helpful • Optimized for keyboard only lovers (but not quite Emacs) • Help -> Welcome • Learn • Find and run all commands • Interface overview • Works with extensions • Gitter chat room from Extension page for “Language Support for Java by RedHat” Learning How to Learn VS Code VS Codeis a Front Endto EverythingCool Happeningin Azure
  • 8.
    © Microsoft Corporation •Wait, what about “projects”? • NetBeans: pom.xml is the project, or .nbproject • IntelliJ/Eclipse: Project with imported pom.xml • VS Code • Folder • Workspace Let’s get a little into Java ExtremelySimpleProject
  • 9.
    © Microsoft Corporation •Start From Maven Archetype • Ctrl+Shift+P Java: Overview • Start • Create a Maven Project • Have access to the entire maven archetype catalog: maven-archetype-quickstart • Breadcrumb navigation • Outline • File Browser • Run Project • Debug Project Let’s get a little into Java ExtremelySimpleProject
  • 10.
    © Microsoft Corporation •Get on the Update Train • Xiaokai He’s blog posts • https://devblogs.microsoft.com/java/java-on-visual-studio-code-update-january-2020/ Peek call hierarchy Data breakpoints • https://devblogs.microsoft.com/java/java-on-visual-studio-code-november-update/ Better symbol details • https://devblogs.microsoft.com/java/java-on-visual-studio-code-october-update/ Inline refactoring Let’s get a little into Java ExtremelySimpleProject
  • 11.
    © Microsoft Corporation •Spring Petclinic • Dependency viewer • Ctrl T: Go go symbol: PetClinicApplication A little more advanced
  • 12.
    © Microsoft Corporation •VS Code is worth mastering • Not trying to be IntelliJ • But it probably does everything you need for Java • And it fits today’s reality that developers need to switch languages constantly • https://code.visualstudio.com/ Summary and Key Takeaways
  • 13.
  • 14.
    © Copyright MicrosoftCorporation. All rights reserved.

Editor's Notes

  • #8 Extensions: Note you can choose to install extensions on the Windows side or the WSL side. Install just the remote extension on the Windows side and all the rest on the WLS side.