vscode-java
vscode-java copied to clipboard
How to turn off the automatic creation of class body when creating a new java file
Create new file # VS Code supports applying templates when you create a Java source file. When you create a
.javafile in the File Explorer, the language server will automatically generate the class body, and fill the package info for you: video
I found this is the April 2020 update.
my question: Is there a way to turn off this feature? Or is it possible generate the main method at the same time as the class body is automatically generated?
Could you share the reason why you want to turn it off?
I have the same issue and want to turn this off. I want to write it manually
I also want to be able to disable this, along with the automatic generation of package statements. Sometimes I want to make stand-along Java files to test something, such files don't need to be in a package.
Same here, I want to be able to modify the template for a class, enum... So that I can put it to be package private whenever I create a new one java file.