我正在为一个简单的程序编写一个java文件,并且我正在尝试对其进行格式化以与Google的java风格指南保持一致。我已经下载了 Red Hat 的 checkstyle for java 和 Language support for java 。在 java checkstyle 的文档中,它说你可以:
You can also trigger the command Checkstyle: Set Checkstyle Configuration File to choose the configuration file in the File Explorer. The extension will automatically detect and list the Checkstyle configuration files in your workspace. Besides that, you will also see the two built-in configurations:
Google's Check
Sun's Check
我想知道是否有人确切地知道如何在 vscode 中使用 java 的 checkstyle 并运行命令来配置它以供 google 检查并运行它以格式化它以供 google 检查
最佳答案
没关系,我已经弄清楚了。原来你只需右键单击即可获取命令面板
关于java - vscode 中 java 扩展的 Checkstyle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58141965/