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

Package Name and File Structure

Open ahmet-tosun opened this issue 4 years ago • 3 comments

eclipse

  • When creating a new project, would you make the file structure like "src> package> Main.java or App.java"?
  • When creating a new class, would you write the name of the created package instead of "io.github.jiangdequan"?
  • Can we choose the default "workspace" folder?

I do not know how to code and cannot do these operations. If you do these I would be very happy. Thank you so much.

ahmet-tosun avatar Apr 29 '21 01:04 ahmet-tosun

When creating a new project, would you make the file structure like "src> package> Main.java or App.java"?

As far as I know, it is controlled by VSC.

When creating a new class, would you write the name of the created package instead of "io.github.jiangdequan"?

It is a bug of the plugin. I am working on it.

Can we choose the default "workspace" folder?

Sorry, I don't exactly know what the problem is.Please provide more detail about this problem.

jiangdequan avatar Apr 29 '21 14:04 jiangdequan

java01

java02

java03

java04

What if we set the default folder as "workspaces" and the projects we will create are created under this folder? It's hard to choose a folder every time. I want to directly write the project name and continue. What if we don't do the operation on the third picture?

ahmet-tosun avatar Apr 29 '21 14:04 ahmet-tosun

Maybe, you can use the method below(It is provided by VSC): File -> Save Workspace As...

jiangdequan avatar Apr 29 '21 16:04 jiangdequan