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
Formatting the document does not work when the document is not saved to disk.
Environment
Operating System: Windows 11
JDK version: 11
Visual Studio Code version: 1.91.1
Java extension version: v1.32.0
Steps To Reproduce
File >> New Text File
Put some Java code in the new document that would be changed by formatting. If the language mode is not automatically detected as Java, set it manually.
Right-click anywhere in the document and click Format document.
Current Result
Nothing happens.
Expected Result
The code gets formatted.
The text was updated successfully, but these errors were encountered:
Indeed the language server needs a java file to exist in order to perform. Now, you can try creating a new empty file, save it as a .java file, then paste your java code, formatting should work without resaving the file.
Formatting the document does not work when the document is not saved to disk.
Environment
Steps To Reproduce
Current Result
Nothing happens.
Expected Result
The code gets formatted.
The text was updated successfully, but these errors were encountered: