Eclipse can open the folder where the current file is located in two ways

Source: Internet
Author: User

Very depressing. Now myeclipse is getting bigger and slower, and there is no way to go back to eclipse. Fortunately, there are many functions in eclipse that can directly replace myeclipse .:)

First, write the most commonly used Open folder. I will wait for the conclusion and confirm that it is easy to use ;)

 

 

 

If you often need to open the folder where the related resource files are located in eclipse, It is troublesome to right-click the folder and copy the folder in the location column, then enter the path in resource manager and press enter to open it.

Solution:
With the easyexplorer plug-in, you can easily open the folder where the resource file is located.

Installation:
Easyexplorer from http://sourceforge.net/projects/easystruts

The downloaded file is a jar compressed file. The latest version is 1.04, which has not been updated for a long time, but is still supported by the latest eclipse 3. * platform. However, the installation method of this plug-in does not work through the automatic update management of Eclipse.

The simplest way to work is to place the JAR file directly under the plug-in directory of eclipse, and then restart the eclipse platform to view the menu items of East explorer in the right-click menu, you can open the directory where the resource is located.

However, the disadvantage is that the newly downloaded plug-in is stored in the original Eclipse plug-in directory, a lot of plug-ins will mess up with you :(

Using the easyexplorer plug-in, you can use explorer in eclipse to open the folder where the resource file is located. For other configurations, Windows => preferences => easy to use E => Target => assumer.exe {0}

It can be seen that the Windows platform is opened with assumer.exe {0}, and {0} is used to pass parameters.

Tip: notepad/e, {0}. In this way, easybench e is used to open the folder. In addition, in the file tree on the left, it is directly located on the folder, it is very convenient.

The parameters of assumer.exe are as follows: You can set them according to your preferences:
Command Format explorer [/n] [/E] [[,/root], [path] [[,/select], [path filename]

 

Parameter description
/N indicates opening a new window in "My Computer" mode, which usually opens the root directory of the Windows Installation partition.
/E Indicates opening a new window in the "Resource Manager" mode. The root directory of the Windows Installation partition is usually opened.
/Root, [path] indicates opening the specified folder,/root indicates displaying only the files (folders) under the specified folder, but not other disk partitions and folders; [path] indicates the specified path.
If you only use the [path] parameter without the/Root parameter, you can display the content in other disk partitions and folders. In addition, you can specify the network shared folder in [path.
/Select, [path filename] indicates opening the specified folder and selecting the specified file. [path filename] indicates the specified path and file name.
If the/select parameter is not added, the system opens the file with the relevant program. If [path filename] is not followed by the file name, the parent directory of the folder is opened and the folder is selected.

After analyzing the parameters of cmd.exe, we may want to display both the file tree on the left and the selected files or folders located on the right.
It should be set to: assumer.exe/e,/select, {0}, but what easy‑e helps you open is located on the folder instead of the corresponding file.

 

 

 

Method 2:

Eclipse open the plug-in of the folder where the current file is located
Run --> external tools configurations...
A new program
Enter C:/Windows/assumer.exe in location.
In arguments, enter $ {container_loc}
Conclusion: It is really convenient to use plug-ins. It is no different from myeclipse.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.