In eclipse, reveal current file in filesystem

后端 未结 10 695
耶瑟儿~
耶瑟儿~ 2020-12-12 19:02

In eclipse, is there a way, to reveal the currently selected file in the filesystem. I currently need it to open in explorer, but it could also be in finder or nautilus.

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 20:00

    Adding Show in Nautilus using External Tools is pretty easy too, very similar to the process for Windows in VonC's answer. Simply create the following shell script, chmod +x it and add it to the PATH. Then use it in Eclipse's External Tools Configuration window, as shown in the screenshot below.

    ~/bin$ cat run-nautilus.sh 
    #!/bin/bash
    nautilus `dirname $1`
    

    Set up the external tools configuration as shown here

提交回复
热议问题