Google 样式格式
Google Style formatting
我已将这两行添加到我的 .vscode/setting.json
文件中以启用格式化功能:
"java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
"java.format.settings.profile": "GoogleStyle"
我正在使用 Eclipse Key Bindings 作为记录。因此,当我执行 Command + Shift + O
时,我的 Java 文件中出现一个小气泡,上面写着:Organize imports
。但是,当我单击它时,我收到此错误消息:Running the contributed command: '_vscode_delegate_cmd_km72g93j' failed.
.
知道如何解决这个问题吗?
我正在使用 Windows,因此组织导入的键盘快捷键是 Shift+Alt+O
。当我按下键时,导入语句会立即组织起来。再次按 Shift+Alt+O 显示黄色灯泡并选择 Organize Imports,出现同样的错误。
如果你翻看Log(Extension Host),你会发现导致这个错误的原因是actual command NOT FOUND _vscode_delegate_cmd_kmel0ckh
:
您不需要点击黄色灯泡并再次选择组织导入,但这可能是个问题,我已将其放入 github:Organize imports throw the error
我已将这两行添加到我的 .vscode/setting.json
文件中以启用格式化功能:
"java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
"java.format.settings.profile": "GoogleStyle"
我正在使用 Eclipse Key Bindings 作为记录。因此,当我执行 Command + Shift + O
时,我的 Java 文件中出现一个小气泡,上面写着:Organize imports
。但是,当我单击它时,我收到此错误消息:Running the contributed command: '_vscode_delegate_cmd_km72g93j' failed.
.
知道如何解决这个问题吗?
我正在使用 Windows,因此组织导入的键盘快捷键是 Shift+Alt+O
。当我按下键时,导入语句会立即组织起来。再次按 Shift+Alt+O 显示黄色灯泡并选择 Organize Imports,出现同样的错误。
如果你翻看Log(Extension Host),你会发现导致这个错误的原因是actual command NOT FOUND _vscode_delegate_cmd_kmel0ckh
:
您不需要点击黄色灯泡并再次选择组织导入,但这可能是个问题,我已将其放入 github:Organize imports throw the error