Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: "create new file" could be more intuitive and convenient #706

Closed
nickzhums opened this issue Jul 30, 2021 · 5 comments · Fixed by microsoft/vscode-java-dependency#533
Assignees

Comments

@nickzhums
Copy link
Member

nickzhums commented Jul 30, 2021

Right now when we create a new file, we will have to manually type class, interface, enum

Also, if our class extends another class or implements another interface, we will have to manually do this in source code.

Furthermore, there are other options that we might want to edit, eg. public vs private vs protected

However, other products provide more intuitive and convenient way when creating a new file, etc

image

image

I'm also seeing customer that asks for this kind of feature, let's investigate if there is a way to optimize this

@nickzhums nickzhums changed the title Investigation: "create new file" could be more intuitive and convenient Discussion: "create new file" could be more intuitive and convenient Jul 30, 2021
@jdneo
Copy link
Member

jdneo commented Aug 2, 2021

It seems more like a UX related problem (how to expose our feature)

So, the current situation is:

If the user creates a new Java file in File Explorer, the code snippet will be generated for him to scaffold the type:

image

Also, the user can create new class/package from the Project explorer:

image

@nickzhums
Copy link
Member Author

nickzhums commented Aug 3, 2021

yes, this is more UX improvement, right now in VS Code we have to create the file first, then manually select class/interface/enum, however in other Java IDEs, they will provide an UX popup before user creates the file

I would say this is something nice to have, for now it might be lower priority but let us revisit if more feedback on this arises

@Eskibear
Copy link
Member

Eskibear commented Aug 6, 2021

https://code.visualstudio.com/updates/v1_59#_contribution-point-for-new-file-menu

Is it a good place to contribute? E.g. Create a Java Class/Interface/...

@jdneo
Copy link
Member

jdneo commented Aug 6, 2021

https://code.visualstudio.com/updates/v1_59#_contribution-point-for-new-file-menu
Is it a good place to contribute? E.g. Create a Java Class/Interface/...

Sounds good

@nickzhums
Copy link
Member Author

as discussed in our meeting, we can investigate this approach :)
https://code.visualstudio.com/updates/v1_59#_contribution-point-for-new-file-menu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants