vscode-java
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
[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
- [step 1] Open an empty folder via vscode
- [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

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
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.