---
title: "利用eclipse ide，自己手写一个【打开文件所在的目录】插件 "
author: "wuce7758"
date: "2013-01-16T10:42:09Z"
tags: []
categories: ["非技术"]
slug: "eclipse-ide"
draft: false
lastmod: "2013-01-16T10:42:09Z"
id: 1770540
url: "https://wuce7758.iteye.com/blog/1770540"
---

之前也在网上找了些打开文件当前目录的插件，可不知道为何用不了，后来发现，原来可以自己手写一个类似功能的插件的（用eclipse自带的插件定义设置）。

1.开打eclipse ide，依次run-》external tools-》external tools configuration

2.在Program下，new一个自己定义的program，我这里取名为“打开文件所在目录”

3.在Location一栏，输入：C:\\WINDOWS\\explorer.exe；在argument一栏，输入：${container\_loc}；确认新增即可

4.回到主界面，在run那里，可以看见刚才自定义的插件了。

5.测试下，大功告成。

![](http://dl.iteye.com/upload/attachment/425902/5ee5c5e4-761e-3a28-919f-0426297a8487.jpg "点击查看原始大小图片")

![](http://dl.iteye.com/upload/attachment/425906/36f89245-f2e9-3ca2-b028-120b1a3ee21f.jpg)