Skip to content

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

@anazar2001

Description

@anazar2001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions