📜  vscode 代码格式化程序无法格式化 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:37.914000             🧑  作者: Mango

代码示例1
//Solution 1:
Select VS Code -> View -> Command Palette,
type: Format Document With...
            //For Java:
            choose "Language Support for Java by Redhat(default)".
            //For other languages:
             Then Configure Default Formatter... and then choose Prettier - Code formatter.
//Solution 2:
File > Preferences > Settings > Search for "default formatter"
Default Formatter -> esbenp.prettier-vscode