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

New Java File -> Class/Interface option defaults file name to public class Main {.java #3725

Open
anazar2001 opened this issue Jul 28, 2024 · 2 comments

Comments

@anazar2001
Copy link

New Java File -> Class/Interface option defaults file name to public class Main {.java

[provide a description of the issue]

Environment
  • Operating System:
  • JDK version:
  • Visual Studio Code version:
  • Java extension version:
Steps To Reproduce
  1. Open Explorer
  2. New Java File -> Class/Interface
  3. Change the class name
  4. Save

[Please attach a sample project reproducing the error]
Please attach logs

Current Result

Class file name includes the first class line, not just a class name

Expected Result

Expect only file name like Main.java
Screenshot 2024-07-28 at 12 31 08

Additional Informations
@jdneo
Copy link
Collaborator

jdneo commented Aug 14, 2024

Where did you trigger the New Java File?

@anazar2001
Copy link
Author

anazar2001 commented Aug 14, 2024 via email

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

No branches or pull requests

2 participants