简体   繁体   中英

Associate Eclipse with src (.java) files in windows 7

Is there a way that you can associate Eclipse with the file extension .java in Windows? So that when I double click the file in windows explorer or total commander it automaticly opens the .java file in Eclipse for viewing and editing. Similar to visual studio when you click c# .cs files or any other type...

You can right click on .java file. Then click on Properties and then change Open With option. Now a dialog window will be shown and you only have to find your eclipse.exe in the dialog box.

THere are two methods to do this simply:

right click on .java file > open with > eclipse > check 'set as default program'

or access it via control panel (not sure about which option under which folder. Try the 'default programs' menu

您是否尝试过右击 - >打开 - >其他 - > Eclipse?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM