You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
loralei28
changed the title
After single file updates class name, file name will not be automatically updated at the same time
After updating the class name in the single file, the file name will not be automatically updated at the same time.
Nov 30, 2023
testforstephen
changed the title
After updating the class name in the single file, the file name will not be automatically updated at the same time.
After renaming the class name in the single file, the file name is not automatically updated at the same time.
Nov 30, 2023
We might need to consider making some setting that automatically disables this functionality when auto-save is enabled.
rgrunber
changed the title
After renaming the class name in the single file, the file name is not automatically updated at the same time.
Renaming the primary type declaration should update the source file name
Feb 28, 2024
This is now possible by ensuring the java.cleanup.actions setting includes the element : "renameFileToType" within the array value. It has also been set as the default option if a user has not overridden the setting with their own preferences.
Environment
Steps To Reproduce
1.Open an empty VS Code window
2.Drag a Java file https://github.com/redhat-developer/vscode-java/blob/master/test/resources/projects/eclipse/simple-app/src/app/App.java to it.
3.Change the class name to "App2"
Current Result
The text was updated successfully, but these errors were encountered: