
效果图
操作步骤
打开External Tool
File-Setting-Tools-External Tool
点击新增, 配置如下
| 名称 | 填入的值 |
|---|---|
| Name | OpenClassInExplorer 或 随意 |
| Description | 随意 |
| Program | explorer.exe |
| Arguments | /select,"O u t p u t P a t h OutputPathOutputPath$FileDirRelativeToSourcepath$$FileNameWithoutExtension$.class" |
| Working directory | P r o j e c t F i l e D i r ProjectFileDirProjectFileDir |
注意: Advanced Options 里面两个都需要取消勾选
最终效果如下图
参考
https://stackoverflow.com/questions/56746044/how-to-show-class-file-in-explorer-in-idea