Title:eclipse using an external editor to open the current edit file
date:2016-08-03 20:43
Tags
-Eclipse
Categories
-Eclipse
Test
Sometimes we need to find out which directory the Java files, packages, configuration files, etc. are being written.
This is usually the 选中文件/文件夹/包名->右击->Properties->Location->复制路径->按Win键->粘贴地址->回车
way to open that folder. This is a cumbersome and inefficient approach.
But Eclipse has provided us with a way to solve this problem and provide External Tools
this stuff.
This place on the menu bar Run->External Tools->External Tools Configurations
Or if the toolbar has an icon, you can click it directly.
You can configure it when you open it.
Select First Program
, then click the New icon in the upper left corner to create a configuration.
Location
Input C:\Windows\explorer.exe
that represents the file browser.
Araguments
Entering ${selected_resource_loc}
This parameter returns the absolute path of the resource that is currently selected.
Name
It would be nice to write a name that you can remember.
Location
Where input C:\Windows\explorer.exe
is meant to have the Explorer open this file, in Windows This file is the folder window. So we can get the files in the folder
After this command is run, the default text editor on your system will be called to open the file you selected.
The next configuration displays the currently edited resource file in the folder.
Configuration method as described above, as long as the Araguments
change ${container_loc}
can be.
As for some other extension tools, you can click Variables
to select more useful features.
From for notes (Wiz)
Eclipse opens the current edit file using an external editor