vscode-java
vscode-java copied to clipboard
Format document doesn't work when document is not saved
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.