如何将 NetBeans IDE 与某些文件扩展名相关联?

发布于 2024-12-02 23:55:25 字数 337 浏览 1 评论 0原文

对于任何其他程序,我会右键单击文件>>打开方式>>选择默认程序,然后我将浏览并找到该程序,然后它将出现在列表中,我将单击它并确保选中“始终使用此程序打开此类文件”选项并单击“确定”。

但是,对于 netbeans,在我找到 netbeans exe 启动程序文件并返回屏幕后,它应该是一个可供选择的选项,但它没有显示。所以我无法将任何文件类型与 netbeans 关联起来。

您可以想象必须先打开 netbeans,然后拖放我想要处理的文件是多么令人沮丧。我永远无法双击并开始工作,我整天都在处理脚本和 html 文件。

我在 Windows 7 操作系统上使用 Netbeans 7.0.1。

For any other program I would right click on the file >> Open With >> Choose Default Program, and then I would browse and find the program and then it would appear on the list and I would click it and make sure the "Always use this program to open this kind of file" option is checked and hit ok.

However, for netbeans after I find the netbeans exe launcher file and go back to the screen where it should then be an option to select, it doesn't show up. So I can't associate any file types with netbeans.

You can imagine how frustrating it is to have to open netbeans first and then drag and drop the file I want to work on. I can never double click and start working and I work with script and html files all day.

I'm using Netbeans 7.0.1 on Windows 7 OS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

可可 2024-12-09 23:55:25

刚刚找到解决方案。

打开Regedit(开始->运行->regedit)

导航到“HKEY_CLASSES_ROOT”

导航至“应用程序”

导航到“netbeans.exe”

展开子文件夹:“shell”,然后展开子文件夹“open”
然后单击名为“command”的最终文件夹。

在右侧,您将看到一个(默认)键,您需要通过右键单击来“修改”

将文件的位置更改为新版本的 Netbeans。我的版本指向 7.0 版本,现在我有 7.1beta,所以它已损坏。

我也改变了我的:

“C:\Program Files\NetBeans 7.1 Beta\bin\netbeans.exe”“%1”(带引号)

现在 Netbeans 应显示在文件关联列表中。

谢谢,祝你好运

Just found the solution.

Open Regedit (start->run->regedit)

Navigate to "HKEY_CLASSES_ROOT"

Navigate to "Applications"

Navigate to "netbeans.exe"

Expand the subfolder: "shell" and then the subfolder "open"
Then click on the final folder named "command".

In the right hand side you will see a (Default) key you need to "Modify" by right clicking.

Change the location of the file to your new version of Netbeans.. Mine was pointing to the 7.0 version, and now I have 7.1beta so it was broken.

I changed mine too :

"C:\Program Files\NetBeans 7.1 Beta\bin\netbeans.exe" "%1" (with the quotes)

Now Netbeans should show up in the file associations list.

Thanks and good luck

相思碎 2024-12-09 23:55:25

上述解决方案都不适合我。对我的情况有帮助的是从 Windows 注册表中删除整个键:HKEY_CLASSES_ROOT/Applications/netbeans.exe/

现在,在选择默认程序对话框中选择netbeans.exe后,Netbeans正确地出现在程序列表中,我可以将其设为默认的PHP“开启程序”。

我的解决方案受到此 Netbeans 错误报告的评论的启发

None of the above solutions worked for me. What did help in my case was deleting the whole key: HKEY_CLASSES_ROOT/Applications/netbeans.exe/ from Windows registry.

Now after selecting netbeans.exe in Choose Default Program dialogue Netbeans properly appears in a list of programs and I can make it a default PHP "opener".

My solution was inspired by comment to this Netbeans bug report

倥絔 2024-12-09 23:55:25

这更多是一个 Windows 7 问题。不管怎样,我会去开始->默认程序,然后单击将文件类型或协议与程序关联。

This is more of an windows 7 question. Anyways, I will go to Start-> default Programs and then click on Associate file type or protocol with a program.

┈┾☆殇 2024-12-09 23:55:25

默认程序控制面板似乎没有提供编辑文件类型关联的完整功能。例如,您可能不想更改默认在浏览器中打开的 HTML 文件,但您希望添加在 NetBeans 中打开的编辑功能。

然而,Types 应用程序支持您在 Windows XP 等中习惯的全功能关联编辑.al。

The Default Programs control panel does not seem to offer the complete ability to edit file type associations. For example, you might not want to change an HTML file from opening by default in a browser, but you'd like to add an Edit function that opens in NetBeans.

The Types app, however, supports the full-featured associations editing you're used to from Windows XP, et.al.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文