vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

how to automatically generate class body when I first creating the first java file as an addition to the previous issue

Open rickychou2023 opened this issue 3 years ago • 1 comments

[provide a description of the issue]

Environment
  • Operating System: windows 11
  • JDK version: JDK11
  • Visual Studio Code version: 1.71.0
  • Java extension version: 0.25.1
Steps To Reproduce
  1. [step 1] Open an empty folder via vscode
  2. [step 2] create the first java file
Current Result

an empty file

Expected Result

I want to generate a file with class body like below image

Additional Informations

Creating the first java file will not automatically generate the class body, but it can be automatically generated after the first one is created

rickychou2023 avatar Sep 02 '22 02:09 rickychou2023

The root cause is that the class body generation is only available after the extension is ready (project import is finished). Before that, it won't pre-fill those contain.

// You can check the right corner in the status bar, once there is a 👍 icon appears, that's the sign of ready status.

jdneo avatar Sep 07 '22 06:09 jdneo