1、點(diǎn)擊“Run”配置按鈕右邊的下拉三角形,選擇“外部工具 配置(External Tools)

image.png
2、在打開的對話框中,選中“程序(Program)”,點(diǎn)擊新建圖標(biāo)。名稱可以任意取,例如“打開目錄”,“位置(Location)”填入:
${env_var:SystemRoot}\explorer.exe
“參數(shù)(Argument)”填入:
/select,${resource_loc}

image.png
最后,切換到“構(gòu)建(Build)”選項(xiàng)卡,去掉“在啟動之前構(gòu)建(Build before run)”復(fù)選框的勾選。

image.png
再點(diǎn)擊“運(yùn)行(Run)”即可。