一:设置
打开设置——工具——外部工具
,添加外部工具,内容如下:
- 组:
External Tools
- 程序:
explorer.exe
,这个是windows的文件终端程序 - 实参:
:/select,"$OutputPath$\$FileDirRelativeToSourcepath$\$FileNameWithoutExtension$.class"
- 工作目录:
$ProjectFileDir$
如果你想要.class
在idea中打开,还需要设置.class
文件属性的打开方式为idea
![在这里插入图片描述](https://img-blog.csdnimg.cn/fe5f58843c4c48ec880421f7d7ddcdb9.png)
二:使用
选择工具——External Tools——操作
![在这里插入图片描述](https://img-blog.csdnimg.cn/753b4ea528984b698d806e026c008958.png)