Vscode-java: New Class Wizard?

Created on 3 Jul 2018  路  7Comments  路  Source: redhat-developer/vscode-java

This a question, not a bug. Please redirect me if I should be asking this elsewhere.

I'm looking for the equivalent of the new class wizard in eclipse and IntelliJ. With the Java extension Pack installed, all I see is the ability to create a new file and then manually name it .java and type out all the class and method boiler plate.

Other than this, my experience as of late has been pretty solid with the tooling. Great work!

question

Most helpful comment

Once you have a new file, simply type class to generate a class body snippet with the proper package name:
newclass

Adding a new wizard wouldn't bring much IMHO. This is a text editor, not an IDE :-)

All 7 comments

Once you have a new file, simply type class to generate a class body snippet with the proper package name:
newclass

Adding a new wizard wouldn't bring much IMHO. This is a text editor, not an IDE :-)

Thanks @fbricon this works just fine. Like I said, I'm just looking for the equivalent, but necessarily identical feature.

Thanks it was helpful

@fbricon I'm not seeing that suggestion pop up. See screenshot below. It doesn't appear as I type, nor when I press CTRL+SPACE:

image

This works perfectly

Once you have a new file, simply type class to generate a class body snippet with the proper package name:
newclass

Adding a new wizard wouldn't bring much IMHO. This is a text editor, not an IDE :-)

Is it possible to change this snippet to remoe javadoc with the class name?

@RushOT i'm wondering the same. you can create your own custom snippet and have it override this. but i need to see how to get the correct package

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ulongx picture ulongx  路  4Comments

shawmanz32na picture shawmanz32na  路  3Comments

marlinla picture marlinla  路  3Comments

yaohaizh picture yaohaizh  路  4Comments

protoEvangelion picture protoEvangelion  路  3Comments